Welcome To Snipplr


Everyone's Recent Perl Snippets Tagged text



« Prev 1 Next »
This Perl snippet shows how to separate quoted parts from a text in order to process quoted and unquoted parts separately. For example, you could expand variables or wildcards only in the unquoted part. Then the different processed parts are put to...
0 83 posted 8 years ago by deepsoul
Just run in your consol window as ./tocase (or whatever you call the file). Be sure to give it proper permission first (chmod 755 tocase) :]
0 55 posted 9 years ago by davidmoreen
This Perl one-liner will remove all newline characters from a text file, replacing them with a space. In the source, all newline characters in the file gear_list.xml are replaced with spaces, and the original file is saved as gear_list.xml.bak
0 75 posted 11 years ago by retry
« Prev 1 Next »