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 657 posted 11 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 406 posted 13 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 678 posted 15 years ago by retry
« Prev 1 Next »