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 3889 posted 14 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 1354 posted 16 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 2125 posted 18 years ago by retry
« Prev 1 Next »