Skip to content

Instantly share code, notes, and snippets.

@jordanmaguire
Created September 29, 2011 12:23
Show Gist options
  • Save jordanmaguire/1250630 to your computer and use it in GitHub Desktop.
Save jordanmaguire/1250630 to your computer and use it in GitHub Desktop.
Mark's bash challenge
#!/bin/bash
echo -e "second\nthird\nfourth" > something.txt
echo -e "something.txt\n-------------"
cat something.txt
echo -e "first" | cat - something.txt > tmp && mv tmp something.txt
echo -e "\nsomething.txt\n-------------"
cat something.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment