quantumech May 18th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- # Print error message until 'file.txt' exists
- while [ ! -e file.txt ]
- echo "Cannot append to file until the file exists"
- # Append 'Appended text' to file.txt
- echo "Appended text" >> file.txt
RAW Paste Data