<?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/text</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Mon, 13 Oct 2008 20:47:53 GMT</pubDate>
<item>
<title>(Bash) Dump a file to the terminal, starting at some line number</title>
<link>http://snipplr.com/view/7309/dump-a-file-to-the-terminal-starting-at-some-line-number/</link>
<description><![CDATA[ <p>tail -n+99 foo.txt will read everything from foo.txt, starting with line 99.  Pipe that into more and you just look at the few line(s) you really need.

Todo: I'd like to learn to narrow this so I only print the lines I want to see, not the lines AND everything after.</p> ]]></description>
<pubDate>Tue, 15 Jul 2008 15:50:36 GMT</pubDate>
<guid>http://snipplr.com/view/7309/dump-a-file-to-the-terminal-starting-at-some-line-number/</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>(Ruby) Parse an XML document with REXML and print some of the text nodes</title>
<link>http://snipplr.com/view/5546/parse-an-xml-document-with-rexml-and-print-some-of-the-text-nodes/</link>
<description><![CDATA[ <p>Parses the XML file MY_FILE.xml, and prints the text from each record node's upload_list node, unless the upload_list node is empty.</p> ]]></description>
<pubDate>Mon, 24 Mar 2008 16:50:22 GMT</pubDate>
<guid>http://snipplr.com/view/5546/parse-an-xml-document-with-rexml-and-print-some-of-the-text-nodes/</guid>
</item>
<item>
<title>(Perl) capitalize words</title>
<link>http://snipplr.com/view/3134/capitalize-words/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:53:02 GMT</pubDate>
<guid>http://snipplr.com/view/3134/capitalize-words/</guid>
</item>
<item>
<title>(Perl) Grab linked files from a list of web pages</title>
<link>http://snipplr.com/view/3126/grab-linked-files-from-a-list-of-web-pages/</link>
<description><![CDATA[ <p>Expects as argument the name of a file containing a newline-delimited list of URLs.  When invoked, launches an interactive shell that asks what type of file should be downloaded.  Then downloads all the files that are linked from each of the listed Web pages.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:31:30 GMT</pubDate>
<guid>http://snipplr.com/view/3126/grab-linked-files-from-a-list-of-web-pages/</guid>
</item>
<item>
<title>(Perl) Remove duplicate lines from a text file</title>
<link>http://snipplr.com/view/3124/remove-duplicate-lines-from-a-text-file/</link>
<description><![CDATA[ <p>Sometimes I get a big list of things, and some of the things occur multiple times in the same list.  A good example is a newline-delimited list of files: the same file path might be listed 4 or 5 times.  So this script removes those kinds of duplicate lines.

Found at Google Answers.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 22:06:34 GMT</pubDate>
<guid>http://snipplr.com/view/3124/remove-duplicate-lines-from-a-text-file/</guid>
</item>
<item>
<title>(Perl) Examine CSS selectors in JSP files and report on whether they match some patterns</title>
<link>http://snipplr.com/view/3119/examine-css-selectors-in-jsp-files-and-report-on-whether-they-match-some-patterns/</link>
<description><![CDATA[ <p>Processe a directory of JSP source files, looks for regex matches, and reports on the number and location of matches.  For detecting deprecated attributes in XHTML.

Uses Mail::Outlook to send an email.  Requires you to click "ok" each time a notification is sent, but gets around firewalls.</p> ]]></description>
<pubDate>Tue, 03 Jul 2007 21:27:59 GMT</pubDate>
<guid>http://snipplr.com/view/3119/examine-css-selectors-in-jsp-files-and-report-on-whether-they-match-some-patterns/</guid>
</item>
<item>
<title>(CSS) Indent text after line wrap</title>
<link>http://snipplr.com/view/2857/indent-text-after-line-wrap/</link>
<description><![CDATA[ <p>When a line of text is longer than the width of its container, it will break onto the next line.  This style causes all lines but the first to be</p> ]]></description>
<pubDate>Wed, 13 Jun 2007 11:48:24 GMT</pubDate>
<guid>http://snipplr.com/view/2857/indent-text-after-line-wrap/</guid>
</item>
<item>
<title>(JavaScript) Summarize Web page bookmarklet</title>
<link>http://snipplr.com/view/2573/summarize-web-page-bookmarklet/</link>
<description><![CDATA[ <p>Grabs the URL, TITLE, and selected text (if any) from the current page.  Then makes a new window with a TEXTAREA and pastes the text into the new window.

This version was designed to work with a client's Jira installation, so it filters the identifying string off the end of titles.  

In practice this bookmarklet will work on any Web page.</p> ]]></description>
<pubDate>Tue, 01 May 2007 19:18:50 GMT</pubDate>
<guid>http://snipplr.com/view/2573/summarize-web-page-bookmarklet/</guid>
</item>
<item>
<title>(JavaScript) copy selected text</title>
<link>http://snipplr.com/view/2383/copy-selected-text/</link>
<description><![CDATA[ <p>This function returns the text that the user currently has selected.</p> ]]></description>
<pubDate>Fri, 23 Mar 2007 14:28:37 GMT</pubDate>
<guid>http://snipplr.com/view/2383/copy-selected-text/</guid>
</item>
<item>
<title>(Perl) Text change across multiple files</title>
<link>http://snipplr.com/view/2034/text-change-across-multiple-files/</link>
<description><![CDATA[ <p>Put this in a script called "update.pl" and call it with "ls *ext|xargs perl update.pl"  Be sure to back up the work directory before playing with this, as it is very easy to wipe out the content of a bunch of files at once in this way.</p> ]]></description>
<pubDate>Sun, 28 Jan 2007 09:01:18 GMT</pubDate>
<guid>http://snipplr.com/view/2034/text-change-across-multiple-files/</guid>
</item>
</channel>
</rss>