Supprimer la ligne commençant par ";"

Solved
PICO92 -  
 PICO92 -
Hello,

I would like to know how to delete all the lines from a text file (.txt) that start with the character ";" (using sed or cat | grep or other commands).
In this file, I also have lines that contain the character ";" (not at the beginning of the line) and that I would like to keep.

Thank you for your help.

PICO92

Configuration: Windows XP / Internet Explorer 7.0

2 réponses

jipicy Posted messages 40842 Registration date   Status Modérateur Last intervention   4 898
 
Hello,

sed '/^;/d' file
;-))

--
$ man woman
There is no manual page for woman.

GNU/Linux: Gnu/Linux is Not Ubuntu!
0
PICO92
 
Thank you very much, it works perfectly!

Phew!, you saved my November 1st.

Thanks again

PICO92
0