Linux/シェルスクリプト/ファイル操作
ファイルの存在チェック
filepath
=
'/hoge/piyo/fuga.txt'
if
[
-e
${filepath}
]
;
then
echo
'ありました'
fi