<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - noah</title>
<link>http://snipplr.com/users/noah/tags/FileSystem</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 16 Feb 2012 03:43:59 GMT</pubDate>
<item>
<title>(Bash) delete files older than 1 day</title>
<link>http://snipplr.com/view/40798/delete-files-older-than-1-day/</link>
<description><![CDATA[ <p>Finds and *removes* files older than 2 days.\r\n\r\n*Use with caution* obviously, as if you fuck up, you\'ll certainly delete files you want to keep, possibly *destroying your entire computer.*\r\n\r\nEnjoy!</p> ]]></description>
<pubDate>Tue, 21 Sep 2010 03:20:55 GMT</pubDate>
<guid>http://snipplr.com/view/40798/delete-files-older-than-1-day/</guid>
</item>
<item>
<title>(Ruby) Howto set up a Rake task to clean out old temp files and logfiles</title>
<link>http://snipplr.com/view/27987/howto-set-up-a-rake-task-to-clean-out-old-temp-files-and-logfiles/</link>
<description><![CDATA[ <p>If you don't see a particular extension in the CLEAN list, test before you add it.  Common temporary file extensions like `~` are cleaned by default.</p> ]]></description>
<pubDate>Mon, 08 Feb 2010 21:56:37 GMT</pubDate>
<guid>http://snipplr.com/view/27987/howto-set-up-a-rake-task-to-clean-out-old-temp-files-and-logfiles/</guid>
</item>
<item>
<title>(Perl) Search and Replace Across Multiple Files with Perl</title>
<link>http://snipplr.com/view/19732/search-and-replace-across-multiple-files-with-perl/</link>
<description><![CDATA[ <p>This brief script *replaces* the batch search-and-replace tool in your commercial text editor.  If batch file search and replacement is the only reason you need an IDE, you can adopt this script and go back to using Notepad (or better yet `vi`).

Thanks to JPinyan, who taught me the pattern shown below, back in 2001 on `beginners.perl.org`

The regular expression flags used here are explained in excellent detail in the *best practices for regular expressions* chapter of **Perl Best Practices** by Damian Conway.</p> ]]></description>
<pubDate>Tue, 15 Sep 2009 00:18:30 GMT</pubDate>
<guid>http://snipplr.com/view/19732/search-and-replace-across-multiple-files-with-perl/</guid>
</item>
<item>
<title>(Bash) Grep for files that do not match a pattern</title>
<link>http://snipplr.com/view/16699/grep-for-files-that-do-not-match-a-pattern/</link>
<description><![CDATA[ <p>The -L option lists files that do *not* contain a line matching the pattern given.</p> ]]></description>
<pubDate>Mon, 06 Jul 2009 16:37:12 GMT</pubDate>
<guid>http://snipplr.com/view/16699/grep-for-files-that-do-not-match-a-pattern/</guid>
</item>
<item>
<title>(Bash) grep for either of two strings</title>
<link>http://snipplr.com/view/6819/grep-for-either-of-two-strings/</link>
<description><![CDATA[ <p>Here's an example of using grep to filter for links that contain the string 'jpg' or 'gif'</p> ]]></description>
<pubDate>Fri, 20 Jun 2008 15:29:33 GMT</pubDate>
<guid>http://snipplr.com/view/6819/grep-for-either-of-two-strings/</guid>
</item>
<item>
<title>(Bash) Count the number of files in a directory</title>
<link>http://snipplr.com/view/4453/count-the-number-of-files-in-a-directory/</link>
<description><![CDATA[ <p>How many files are in the current working directory?  This is recursive, so the count includes subdirectories and files contained in subdirectories.  To get a non-recursive count of just the files/directories in the current working directory, use ls -1 in place of find .</p> ]]></description>
<pubDate>Thu, 03 Jan 2008 22:21:06 GMT</pubDate>
<guid>http://snipplr.com/view/4453/count-the-number-of-files-in-a-directory/</guid>
</item>
<item>
<title>(Bash) Create a directory recursively</title>
<link>http://snipplr.com/view/3979/create-a-directory-recursively/</link>
<description><![CDATA[ <p>Given the legal path of a nonexistent directory, create that path and directory.</p> ]]></description>
<pubDate>Tue, 23 Oct 2007 02:01:14 GMT</pubDate>
<guid>http://snipplr.com/view/3979/create-a-directory-recursively/</guid>
</item>
<item>
<title>(Perl) search and replace across multiple files with Perl</title>
<link>http://snipplr.com/view/3145/search-and-replace-across-multiple-files-with-perl/</link>
<description><![CDATA[ <p>A couple of useful snippets from an article I found at Perl.com

**Perl search-and-replace on the command line.**

All of these should be usable under Cygwin as well.  But remember that bash wants single-quoted strings but MS-DOS shell wants strings to be double-quoted.</p> ]]></description>
<pubDate>Wed, 04 Jul 2007 20:00:52 GMT</pubDate>
<guid>http://snipplr.com/view/3145/search-and-replace-across-multiple-files-with-perl/</guid>
</item>
</channel>
</rss>
