Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Print error message until 'file.txt' exists
- while [ ! -e file.txt ]
- do
- echo "Cannot append to file until the file exists"
- done
- # Append 'Appended text' to file.txt
- echo "Appended text" >> file.txt
Add Comment
Please, Sign In to add comment