quantumech

Untitled

May 18th, 2019
90
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data