<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/bash/tags/perl</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 14:49:43 GMT</pubDate>
<item>
<title>(Bash) Batch file content replace from template.php - zlincoln</title>
<link>http://snipplr.com/view/67411/batch-file-content-replace-from-templatephp/</link>
<description><![CDATA[ <p>Find and replace contents of files ending in .php with nothing.  then append contents of template.php to all files in directory</p> ]]></description>
<pubDate>Thu, 27 Sep 2012 23:32:33 GMT</pubDate>
<guid>http://snipplr.com/view/67411/batch-file-content-replace-from-templatephp/</guid>
</item>
<item>
<title>(Bash) Batch remove whitespace in all the files in directory and replace with a dash "-" - licensetoil</title>
<link>http://snipplr.com/view/62828/batch-remove-whitespace-in-all-the-files-in-directory-and-replace-with-a-dash-/</link>
<description><![CDATA[ <p>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/</p> ]]></description>
<pubDate>Sat, 28 Jan 2012 17:42:18 GMT</pubDate>
<guid>http://snipplr.com/view/62828/batch-remove-whitespace-in-all-the-files-in-directory-and-replace-with-a-dash-/</guid>
</item>
<item>
<title>(Bash) kill zombie processes - noah</title>
<link>http://snipplr.com/view/41095/kill-zombie-processes/</link>
<description><![CDATA[ <p>Thanks to [Kastner](http://metaatem.net/) for these snippets.</p> ]]></description>
<pubDate>Tue, 28 Sep 2010 07:14:38 GMT</pubDate>
<guid>http://snipplr.com/view/41095/kill-zombie-processes/</guid>
</item>
<item>
<title>(Bash) run 'linkcheck' on bookmarks 1 of 2 - rowntreerob</title>
<link>http://snipplr.com/view/22426/run-linkcheck-on-bookmarks-1-of-2/</link>
<description><![CDATA[ <p>export bookmarks.html file, extract links from that file to a list , using the list as INPUT to linkchecker that reports dead links</p> ]]></description>
<pubDate>Tue, 03 Nov 2009 19:07:05 GMT</pubDate>
<guid>http://snipplr.com/view/22426/run-linkcheck-on-bookmarks-1-of-2/</guid>
</item>
<item>
<title>(Bash) Find newest file and its modification time - deepsoul</title>
<link>http://snipplr.com/view/22289/find-newest-file-and-its-modification-time/</link>
<description><![CDATA[ <p>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 deciding what directories to backup.</p> ]]></description>
<pubDate>Sun, 01 Nov 2009 13:25:08 GMT</pubDate>
<guid>http://snipplr.com/view/22289/find-newest-file-and-its-modification-time/</guid>
</item>
<item>
<title>(Bash) Convert bit stream to ASCII text - deepsoul</title>
<link>http://snipplr.com/view/20493/convert-bit-stream-to-ascii-text/</link>
<description><![CDATA[ <p>Useful for decoding geek humour such as [this cartoon](http://assets.comics.com/dyn/str_strip/000000000/00000000/0000000/200000/90000/5000/900/295942/295942.full.gif).  Accepts input from stdin.</p> ]]></description>
<pubDate>Wed, 30 Sep 2009 16:03:09 GMT</pubDate>
<guid>http://snipplr.com/view/20493/convert-bit-stream-to-ascii-text/</guid>
</item>
<item>
<title>(Bash) Kill Process with Perl Regular Expression - wearetherock</title>
<link>http://snipplr.com/view/19670/kill-process-with-perl-regular-expression/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 14 Sep 2009 02:34:35 GMT</pubDate>
<guid>http://snipplr.com/view/19670/kill-process-with-perl-regular-expression/</guid>
</item>
<item>
<title>(Bash) Lookup current Perl Version - bhubbard</title>
<link>http://snipplr.com/view/13468/lookup-current-perl-version/</link>
<description><![CDATA[ <p>Find out which version of Perl is installed on the server.</p> ]]></description>
<pubDate>Thu, 26 Mar 2009 09:43:37 GMT</pubDate>
<guid>http://snipplr.com/view/13468/lookup-current-perl-version/</guid>
</item>
<item>
<title>(Bash) Search and replace with perl - sanjivarunsahayamhotmailcom</title>
<link>http://snipplr.com/view/10540/search-and-replace-with-perl/</link>
<description><![CDATA[ <p>Replace all the occurrences of a string with a replacement in the supplied files.</p> ]]></description>
<pubDate>Wed, 17 Dec 2008 00:22:35 GMT</pubDate>
<guid>http://snipplr.com/view/10540/search-and-replace-with-perl/</guid>
</item>
<item>
<title>(Bash) Words with many doubled letters - zingo</title>
<link>http://snipplr.com/view/7056/words-with-many-doubled-letters/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 01 Jul 2008 19:28:07 GMT</pubDate>
<guid>http://snipplr.com/view/7056/words-with-many-doubled-letters/</guid>
</item>
<item>
<title>(Bash) Perl Search and Replace One-liner with xargs -0 - ches</title>
<link>http://snipplr.com/view/5078/perl-search-and-replace-oneliner-with-xargs-0/</link>
<description><![CDATA[ <p>\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.</p> ]]></description>
<pubDate>Fri, 15 Feb 2008 14:02:45 GMT</pubDate>
<guid>http://snipplr.com/view/5078/perl-search-and-replace-oneliner-with-xargs-0/</guid>
</item>
<item>
<title>(Bash) Batch rename files in directory - iblis</title>
<link>http://snipplr.com/view/4468/batch-rename-files-in-directory/</link>
<description><![CDATA[ <p>test with echo instead of mv
example removes spaces after dots, replaces spaces with _, removes ' , and -, and finally lowercases filenames</p> ]]></description>
<pubDate>Tue, 08 Jan 2008 17:28:53 GMT</pubDate>
<guid>http://snipplr.com/view/4468/batch-rename-files-in-directory/</guid>
</item>
<item>
<title>(Bash) Scrape Google from the command line - noah</title>
<link>http://snipplr.com/view/4299/scrape-google-from-the-command-line/</link>
<description><![CDATA[ <p>This code is POC only -- actually using it would violate Google's TOS, which forbids scraping.  It is published here for educational value only.

Hypothetically, the following command should return a list of the top 500 or so hits in Google for onemorebug.com.

The results will be prepended with digits, followed by a dot and some whitespace (Lynx adds these).

_You must have Lynx and Wget installed on your system for this to work._

Keep in mind that *nix shells don't like it when you double-quote strings, see the comments.</p> ]]></description>
<pubDate>Sun, 09 Dec 2007 21:16:58 GMT</pubDate>
<guid>http://snipplr.com/view/4299/scrape-google-from-the-command-line/</guid>
</item>
<item>
<title>(Bash) check linked pages for Tidy validation errors, on the command line - noah</title>
<link>http://snipplr.com/view/4130/check-linked-pages-for-tidy-validation-errors-on-the-command-line/</link>
<description><![CDATA[ <p>Given a list of HTML links (for example, a Google results page that has been saved locally) check each link that points to a page on a given domain, and report if Tidy complains that its doctype declaration is missing.

Besides DOCTYPE, other strings to search for include "discarding", "lacks value" and "Error:"

Remember to replace MY_DOMAIN with the actual domain you want to validate against.</p> ]]></description>
<pubDate>Tue, 13 Nov 2007 23:47:28 GMT</pubDate>
<guid>http://snipplr.com/view/4130/check-linked-pages-for-tidy-validation-errors-on-the-command-line/</guid>
</item>
<item>
<title>(Bash) Validate a list of Web pages with Tidy, on the command line - noah</title>
<link>http://snipplr.com/view/4129/validate-a-list-of-web-pages-with-tidy-on-the-command-line/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 13 Nov 2007 22:54:37 GMT</pubDate>
<guid>http://snipplr.com/view/4129/validate-a-list-of-web-pages-with-tidy-on-the-command-line/</guid>
</item>
<item>
<title>(Bash) Tail requests for HTML files - noah</title>
<link>http://snipplr.com/view/4069/tail-requests-for-html-files/</link>
<description><![CDATA[ <p>This command will tail an Apache access log, but only print lines where an HTML file was requested.</p> ]]></description>
<pubDate>Mon, 05 Nov 2007 12:40:54 GMT</pubDate>
<guid>http://snipplr.com/view/4069/tail-requests-for-html-files/</guid>
</item>
<item>
<title>(Bash) Download linked JPEGs from a Web page, on the command line - noah</title>
<link>http://snipplr.com/view/4063/download-linked-jpegs-from-a-web-page-on-the-command-line/</link>
<description><![CDATA[ <p>The following command will download all the files with a JPG extension that are linked from http://flickr.com.

_Requires the LWP and HTML::Tree Perl modules.  You must also have Wget installed on your system for this to work._</p> ]]></description>
<pubDate>Fri, 02 Nov 2007 22:57:45 GMT</pubDate>
<guid>http://snipplr.com/view/4063/download-linked-jpegs-from-a-web-page-on-the-command-line/</guid>
</item>
<item>
<title>(Bash) How to add a '.t' filetype to vi's syntax highlighting - wolfie</title>
<link>http://snipplr.com/view/2448/how-to-add-a-t-filetype-to-vis-syntax-highlighting/</link>
<description><![CDATA[ <p>This allows you to use perl syntax highlighting in vi for test scripts that use the ".t" file extension</p> ]]></description>
<pubDate>Wed, 11 Apr 2007 04:45:38 GMT</pubDate>
<guid>http://snipplr.com/view/2448/how-to-add-a-t-filetype-to-vis-syntax-highlighting/</guid>
</item>
<item>
<title>(Bash) Bash - Abilitare il NAT - whitetiger</title>
<link>http://snipplr.com/view/1639/bash--abilitare-il-nat/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:52 GMT</pubDate>
<guid>http://snipplr.com/view/1639/bash--abilitare-il-nat/</guid>
</item>
<item>
<title>(Bash) Bash - DVD2Divx - whitetiger</title>
<link>http://snipplr.com/view/1637/bash--dvd2divx/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Thu, 09 Nov 2006 23:55:45 GMT</pubDate>
<guid>http://snipplr.com/view/1637/bash--dvd2divx/</guid>
</item>
</channel>
</rss>