Why does `cat foo | sed 's/bar/qux/'` > foo` erases the contents of foo?
30237
Bending a pipeline back into its origin
65925
get first X characters from the cat command?
65032
How can I "cat" a file and remove commented lines?
51442
Why does bash variable expansion retain quotes?
120214
What's the difference between <<, <<< and < < in bash?
142748
Strange behaviour of "ls -a | grep ^\."
124920
sed one-liner to delete everything between a pair of brackets?
14058
Environment variable substitution in sed
11400
How to cat > a file containing code?
9470
sed fails with "unknown option to `s'" error
48823
sed -i - edit files in place does not work in compound commandq
132549
Passing regular files only to `sed -i`
32146
sed to remove all after a string?
16113
How to stop the tail when sed finds the string?
11072
Can sed replace new line characters?
109698
tail -f but suck in content of the file first (aka `cat -f`)
157834
How to replace quotation marks in a file with sed?