sed - andreydiveev/wiki GitHub Wiki
Replace in all files recursive (via sed):
find ./ -type f -exec sed -i -e 's/apple/orange/g' {} \;
Print specific line of file (e.g. line 5):
$ sed -n 5p filename
Replace word in specified file by pattern:
sed -i "s/apple/banana/g" /path/to/file
Append text to a head of file:
sed -i '1iTEXT GOES HERE' myfile.txt