Skip to content

Instantly share code, notes, and snippets.

@jordanmaguire
Created September 29, 2011 12:58
Show Gist options
  • Save jordanmaguire/1250680 to your computer and use it in GitHub Desktop.
Save jordanmaguire/1250680 to your computer and use it in GitHub Desktop.
Marks Challenge 2
#!/bin/bash
echo -e "second\nthird\nfourth" > something.txt
echo -e "something.txt\n-------------"
cat something.txt
printf '%s\n' 0a "first" . w | ed -s 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