6
존재하지 않는 파일을 생성하는 쉘 스크립트?
파일의 존재 여부를 확인하는 쉘 스크립트를 작성해야하며, 존재하지 않는 경우 파일을 작성하고 다음 명령으로 이동하거나 다음 명령으로 이동하십시오. 내가하지 않은 것은. #!/bin/bash # Check for the file that gets created when the script successfully finishes. if [! -f /Scripts/file.txt] then : # Do nothing. Go to the next step? else …
20
bash
shell-script
osx