I have a file with the name of movies with the .vob extension. I would like to get rid of the .vob off the name. I tried using sed '/.vob/d' vob.lst, but nothing happened. Can somebody tell me what I'm doing wrong ?
What you wrote means "read the file vob.lst and delete those lines which contain any character followed by the string 'vob'". I suppose every line of vob.lst contained any character followed by the string 'vob', so all was deleted and none printed out. So actually happened something, just not what you expected.
If you find hard to understand how those described in the [tt]sed[/tt] manual works, I suggest to google for "sed one-liner" for some very simple examples. There you will see how to use practically what the manual described.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.