quantumech

Untitled

May 18th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.20 KB | None | 0 0
  1. # Print error message until 'file.txt' exists
  2. while [ ! -e file.txt ]
  3. do
  4.     echo "Cannot append to file until the file exists"
  5. done
  6.  
  7. # Append 'Appended text' to file.txt
  8. echo "Appended text" >> file.txt
Add Comment
Please, Sign In to add comment