What bash command can be used for regex substitution on a pipe?
cat foo.txt | someprogram
|
feedback
|
|
You probably want
Read more at Sed tutorial, Another tutorial, and A small tutorial at Linux HOWTOs | ||||
|
feedback
|
|
You can also use perl one liners if you find you want more regular expression features than sed provides. See this link for a comparison. nik's example would look like:
| |||
feedback
|