Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged perl



« Prev 1 Next »
Find and replace contents of files ending in .php with nothing. then append contents of template.php to all files in directory
0 620 posted 11 years ago by zlincoln
Add this to your .profile or .bash_rc file, source the file, navigate to the directory and call "rm_whitespace" Based on: http://snipplr.com/view/4468/batch-rename-files-in-directory/
1 1218 posted 12 years ago by licensetoil
export bookmarks.html file, extract links from that file to a list , using the list as INPUT to linkchecker that reports dead links
0 675 posted 14 years ago by rowntreerob
Find the most recently modified file in a directory tree and output its name and modification time. Use index 8 or 10 instead of 9 for access and inode modification time, respectively (see perlfunc manual page - function stat). This is great for...
0 611 posted 14 years ago by deepsoul
Find out which version of Perl is installed on the server.
0 437 posted 14 years ago by bhubbard
Replace all the occurrences of a string with a replacement in the supplied files.
2 742 posted 15 years ago by sanjivarunsahayamhotmailcom
0 662 posted 15 years ago by zingo
\Q...\E perl quoting means no ugly escaping in the regex. find's -print0 with xargs -0 is the secret to handling files with spaces in their names.
1 904 posted 16 years ago by ches
test with echo instead of mv example removes spaces after dots, replaces spaces with _, removes ' , and -, and finally lowercases filenames
1 743 posted 16 years ago by iblis
This allows you to use perl syntax highlighting in vi for test scripts that use the ".t" file extension
0 724 posted 16 years ago by wolfie
0 564 posted 17 years ago by whitetiger
0 574 posted 17 years ago by whitetiger
0 528 posted 17 years ago by whitetiger
« Prev 1 Next »