N
Nikita Synytskyy
I feel this should be so obvious, but it isn't...
From the command line, I'm trying to delete all lines matching a
particular regexp. I know how to do a substitution:
perl -wpi -e "s/foo/bar/g" filename.ext
Now, how do I delete all lines that contain "foo"?
Nikita.
From the command line, I'm trying to delete all lines matching a
particular regexp. I know how to do a substitution:
perl -wpi -e "s/foo/bar/g" filename.ext
Now, how do I delete all lines that contain "foo"?
Nikita.