Skip to content

Instantly share code, notes, and snippets.

@rpg-314
rpg-314 / gist:602369
Created September 29, 2010 06:36
Tricks with sed
#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"