Posts tagged as:

sed find and replace

Q. How do I perform a case-insensitive search using sed under UNIX / Linux? I’d like to match all combination of word - foo, FOO, FoO and so on while replacing or performing other operations.

{ 0 comments }

Q. How do I remove all digits or number from my text file or input using sed command?

{ 0 comments }

Q. How do I find and replace character codes ( control-codes or nonprintable characters ) such as ctrl+a using sed command under UNIX like operating systems?

{ 0 comments }

Q. I need to delete all empty lines but could not figure out sed command for the same? How do I delete all empty lines with sed?
A. sed is a stream editor and perfect for these kind of work.
You need to use d command under sed which is act as the delete function.
Sed [...]

{ 12 comments }