Top "Sed" questions

Sed (Stream EDitor) is a command line editor for POSIX environment.

Grep output with multiple Colors?

Is there an elegant method in bash for running grep against a text file with two or more patterns, and …

bash colors sed awk grep
unix tr find and replace

This is the command I'm using on a standard web page I wget from a web site. tr '<…

unix sed awk tr
How to grep for case insensitive string in a file?

I have a file file1 which ends with Success... OR success... I want to grep for the word success in …

bash shell awk sed grep
Alternative to `sed -i` on Solaris

On Linux sed -i will modify the input files in place. It doesn't work on Solaris, though. sed -i '$ …

shell unix sed solaris
Append text to file using sed

How can I write text to a file using sed? More specifically I would it add null variables to my …

bash shell text sed edit
remove white space in bash using sed

I have a file that contains a number followed by a file path on each line for a large amount …

bash unix sed whitespace uniq
Use find, wc, and sed to count lines

I was trying to use sed to count all the lines based on a particular extension. find -name '*.m' …

bash sed find wc
How do I convert multi line text into one line?

I'm trying to make a txt file with a generated key into 1 line. example: <----- key start -----> …

bash sed text-processing
How to replace a character within a matched pattern using ampersand (&)

When we match a pattern using sed, the matched pattern is stored in the "ampersand" (&) variable. IS there a …

sed match ampersand
how to use xargs with sed in search pattern

I need to use the output of a command as a search pattern in sed. I will make an example …

bash sed replace pipeline