<?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/text</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 20 Jun 2013 13:07:56 GMT</pubDate>
<item>
<title>(Bash) Get word frequency distribution - clopez</title>
<link>http://snipplr.com/view/62807/get-word-frequency-distribution/</link>
<description><![CDATA[ <p>When you run this over a text.txt with some text you will get the word distribution on output_ngram.txt as follows:

  30 m
  29 por
  29 aplicaci
  27 modelo
  27 datos
  24 con
  21 este
  21 esta
  20 En
  18 posible
  18 palabras
  18 como
  17 texto
  14 tem
  14 no
  14 documentos
  14 cada
  14 Por
  13 ya
  13 todo
  13 textos
  13 proceso</p> ]]></description>
<pubDate>Fri, 27 Jan 2012 13:29:23 GMT</pubDate>
<guid>http://snipplr.com/view/62807/get-word-frequency-distribution/</guid>
</item>
<item>
<title>(Bash) Get word frequency distribution - clopez</title>
<link>http://snipplr.com/view/62806/get-word-frequency-distribution/</link>
<description><![CDATA[ <p>For any text document this snippet generates an output file that looks like this:

  30 m
  29 por
  29 aplicaci
  27 modelo
  27 datos
  24 con
  21 este
  21 esta</p> ]]></description>
<pubDate>Fri, 27 Jan 2012 13:17:40 GMT</pubDate>
<guid>http://snipplr.com/view/62806/get-word-frequency-distribution/</guid>
</item>
<item>
<title>(Bash) Convert encoding of a file - hced</title>
<link>http://snipplr.com/view/45635/convert-encoding-of-a-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 12 Dec 2010 03:29:09 GMT</pubDate>
<guid>http://snipplr.com/view/45635/convert-encoding-of-a-file/</guid>
</item>
<item>
<title>(Bash) UNIX regexp search down a directory tree - jarnaldich</title>
<link>http://snipplr.com/view/44246/unix-regexp-search-down-a-directory-tree/</link>
<description><![CDATA[ <p>Searches down the current directory every file whose name matches (case insensitively) {{file_pattern}} for the regexp {{text}}.</p> ]]></description>
<pubDate>Tue, 16 Nov 2010 18:28:37 GMT</pubDate>
<guid>http://snipplr.com/view/44246/unix-regexp-search-down-a-directory-tree/</guid>
</item>
<item>
<title>(Bash) Subtract file2 from file1 - benpjohnson</title>
<link>http://snipplr.com/view/34247/subtract-file2-from-file1/</link>
<description><![CDATA[ <p>Using a sorted list remove all the lines in file2 from file1</p> ]]></description>
<pubDate>Tue, 11 May 2010 11:22:48 GMT</pubDate>
<guid>http://snipplr.com/view/34247/subtract-file2-from-file1/</guid>
</item>
<item>
<title>(Bash) Grep for files that do not match a pattern - noah</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) Convert dos text file to unix text file - fontanon</title>
<link>http://snipplr.com/view/9426/convert-dos-text-file-to-unix-text-file/</link>
<description><![CDATA[ <p>Maybe you know that dos2unix command (included in tofrodos package) makes the conversion between dos and unix text files. But, what if you don't want to install tofrodos package or dos2unix fails? That's the bash solution i found over the web.</p> ]]></description>
<pubDate>Sat, 01 Nov 2008 15:00:34 GMT</pubDate>
<guid>http://snipplr.com/view/9426/convert-dos-text-file-to-unix-text-file/</guid>
</item>
<item>
<title>(Bash) Dump a file to the terminal, starting at some line number - noah</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.

To narrow this so it only prints the interesting lines (and not everything after those lines), see the nice solutions from [deepsoul,](http://snipplr.com/users/deepsoul) below.</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 - noah</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) Add line numbers to a text file - therobot</title>
<link>http://snipplr.com/view/5971/add-line-numbers-to-a-text-file/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 23 Apr 2008 19:17:40 GMT</pubDate>
<guid>http://snipplr.com/view/5971/add-line-numbers-to-a-text-file/</guid>
</item>
<item>
<title>(Bash) Deleting Blank Lines Using AWK - ches</title>
<link>http://snipplr.com/view/4315/deleting-blank-lines-using-awk/</link>
<description><![CDATA[ <p>Create a copy of a text file with blank lines removed.</p> ]]></description>
<pubDate>Wed, 12 Dec 2007 12:38:18 GMT</pubDate>
<guid>http://snipplr.com/view/4315/deleting-blank-lines-using-awk/</guid>
</item>
</channel>
</rss>