1. How do I use wildcards in a delete? I have lines like this say:
VALUES('-1','2','Whee','OMG');
And I want them to end up like this:
VALUES('2','Whee','OMG');
With the -1 gone. However I can't just do a normal find and replace, because the -1 changes with every line. what program can do this and what is the command/way to do this?
The closest i got was in VI
:s/VALUES('*',/VALUES(/g but that didn't work.
2. How to list only directories in unix ls?
What I'm looking for is the unix equivilent to
dir /s /ad /s *
Thanks
