Delete the lines begining with /

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Delete the lines begining with /

Vamsi Krishna
I have to delete the lines begining with / in afile.I am using  below sed command

sed '|^\/|d' file. I tried with grep -v '^/'  file and it is working.Just want to know is it possible with sed
But it throwing error like it is not a reognized function
Reply | Threaded
Open this post in threaded view
|

Re: Delete the lines begining with /

Guru
Administrator
Its possible in sed as well.

sed '/^\//d' file