4 FAQ tagged "sed command"
Viewing 1-4 of 4 FAQ -- Linux / UNIX View Only Configuration File Directives ( uncommented lines of a config file )
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?
- Sed Find and Display Text Between Two Strings or Words
Q. How do I find the text between the strings FOO and BAR inclusive using sed command line option?
- Delete text or paragraph between two sections using sed
Q. How do I use sed for selective deletion of certain lines? I have text as follows in file:
Line 1
Line 2
WORD1
Line3
Line 4
WORD2
Line5
I would like to delete all lines between WORD1 and WORD2 to produce final output:
Line 1
Line 2
Line5
A. For selective deletion of certain lines sed is the best tool. To print all of file EXCEPT [...] - Howto: Linux command line utilities for removing blank lines from text files
Q. I want to change the formatting of a file. I just wanted to remove all blank lines from text file. How do I achieve this task w/o spending much time?
Viewing 1-4 of 4 FAQ - ( see all popular tags )




Recent Comments
Today ~ 2 Comments
Yesterday ~ 10 Comments
Yesterday ~ 12 Comments
09/03/2008 05:29 pm (2 days ago) ~ 6 Comments
09/03/2008 01:14 pm (2 days ago) ~ 1 Comment