sed command

How do I replace newline (\n) with sed under UNIX / Linux operating systems?

{ 4 comments }

Most Linux / UNIX configuration files are documented using comments, but some time I just need to see line of configuration text in a file. How can I view just the uncommented configuration file directives from squid.conf or httpd.conf file?

{ 7 comments }

Q. How do I find the text between the strings FOO and BAR inclusive using sed command line option?

{ 36 comments }

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.

{ 3 comments }

Q. How do I insert a newline into the RHS of a substitution using sed under Linux / UNIX like operating systems? My line pattern is as follows:

This is a test. This is another input.

I’d like to insert a newline after dot (.).

{ 0 comments }

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

{ 5 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?

{ 12 comments }