passing bash variable to perl command in bash script
Recently I tried passing a bash variable to perl command in bash script, it didn’t end well. […]
Recently I tried passing a bash variable to perl command in bash script, it didn’t end well. […]
I spent forever trying to figure out how to unwrap an apache access_log that was splitting […]
perl replace text in multiple files perl -pi -e ‘s~OLDTEXT~NEWTEXT~g’ /path/to/filenames/* Alternative (to avoid escaping slashes): […]
here’s how to replace text in a file with perl: perl -pi -e ‘s~OLDTEXT~NEWTEXT~g’ /path/to/filename