Linux/シェルスクリプト/ファイル操作

Linux/シェルスクリプト/ファイル操作

ファイルの存在チェック

filepath='/hoge/piyo/fuga.txt'
if [ -e ${filepath} ] ; then
  echo 'ありました'
fi
linux/shell_script/file_ope.txt · 最終更新: 2017-09-19 17:04 by ore