Created
September 29, 2010 06:36
-
-
Save rpg-314/602369 to your computer and use it in GitHub Desktop.
Tricks with sed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#print all files in this directory (recursively) with their full path | |
find . -type f | sed "s#^.#$(pwd)#" | |
#insert blah at the beginning of every line in a file | |
cat guinea_pig_file | sed "s/^/Blah /g" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment