LinuxQuestions.org
(
/questions/
)
-
Programming
(
https://www.linuxquestions.org/questions/programming-9/
)
- -
Grab text lines in text file
(
https://www.linuxquestions.org/questions/programming-9/grab-text-lines-in-text-file-388634/
)
LULUSNATCH
12-02-2005 10:27 AM
Grab text lines in text file
Hi,
How can i grab text lines NOT beginning by # in a text file with the sed command
Thanks
Andrew Benton
12-02-2005 10:55 AM
sed -n '/^#/!p' text-file
All times are GMT -5. The time now is
12:00 AM
.