반응형 file exists1 Check Files in list from file exist or doesn't exist in directory #!/usr/bin/env bash #Check Files in list from file exist or doesn't exist in directory. if [ $# -eq 0 ] || [ $# -eq 1 ] then echo "You must pass the path to file with the list and the path to directory to check files. \nsh [check-file-exist-from-list.sh](http://check-file-exist-from-list.sh/) path/to/file path/to/directory" exit 1 fi while read -r file; do echo "$2$file" if [ -e "$2/$file" ]; th.. 2020. 11. 9. 이전 1 다음 반응형