perl -n -e "print if (/XXX/ ... /YYY/)" file
To substitute string "country_bumpkin" for "country" in a whole bunch of files:
perl -p -i -e "s/country/country_bumpkin/g" files
Tech and other mechanisms I use to cope.
perl -n -e "print if (/XXX/ ... /YYY/)" file
perl -p -i -e "s/country/country_bumpkin/g" files
No comments:
Post a Comment