How To Delete Lines Using PERL Edit In Place

Using PERL, we can easily do a search and replace across multiple files.
perl -ni -w -e 'print unless m/^gdb\d+/;' yourFileSpec
Using PERL, we can easily do a search and replace across multiple files.
perl -ni -w -e 'print unless m/^gdb\d+/;' yourFileSpec
Categories: How-To's, Technology Tags: Batch, Delete, Edit, Edit In Place, howto, in place, perl, search, tips
Copyright © 2005-2025 Eric Michael Stone | Random Thoughts, Whims and Fancies…. Powered by WordPress
Leave Your Comment
All fields marked with "*" are required.