<?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/commandline</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 25 May 2013 02:12:32 GMT</pubDate>
<item>
<title>(Bash) List the keyboard shortcuts for your *nix\'s builtin functions - cczona</title>
<link>http://snipplr.com/view/58479/list-the-keyboard-shortcuts-for-your-nixs-builtin-functions/</link>
<description><![CDATA[ <p>See also http://www.gnu.org/software/bash/manual/bashref.html#Bindable-Readline-Commands for the standard bindings and more detailed explanation of what they do.</p> ]]></description>
<pubDate>Wed, 07 Sep 2011 07:34:29 GMT</pubDate>
<guid>http://snipplr.com/view/58479/list-the-keyboard-shortcuts-for-your-nixs-builtin-functions/</guid>
</item>
<item>
<title>(Bash) Delete files based on date - danshields</title>
<link>http://snipplr.com/view/56002/delete-files-based-on-date/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 01 Jul 2011 21:54:35 GMT</pubDate>
<guid>http://snipplr.com/view/56002/delete-files-based-on-date/</guid>
</item>
<item>
<title>(Bash) Assign default parameters - miceno</title>
<link>http://snipplr.com/view/46408/assign-default-parameters/</link>
<description><![CDATA[ <p>Assigns a default value to VARIABLE in case there is no positional parameter</p> ]]></description>
<pubDate>Mon, 03 Jan 2011 06:52:25 GMT</pubDate>
<guid>http://snipplr.com/view/46408/assign-default-parameters/</guid>
</item>
<item>
<title>(Bash) test that pwgen does not produce duplicate words - noah</title>
<link>http://snipplr.com/view/45623/test-that-pwgen-does-not-produce-duplicate-words/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 11 Dec 2010 15:20:34 GMT</pubDate>
<guid>http://snipplr.com/view/45623/test-that-pwgen-does-not-produce-duplicate-words/</guid>
</item>
<item>
<title>(Bash) Sending html from Mutt - yisreldov</title>
<link>http://snipplr.com/view/37938/sending-html-from-mutt/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 27 Jul 2010 17:43:19 GMT</pubDate>
<guid>http://snipplr.com/view/37938/sending-html-from-mutt/</guid>
</item>
<item>
<title>(Bash) SVN log, only for this branch - noah</title>
<link>http://snipplr.com/view/26955/svn-log-only-for-this-branch/</link>
<description><![CDATA[ <p>Use SVN log to print only the history of the current branch.  The `--stop-on-copy` option will print the entire history of the current branch, and then stop.</p> ]]></description>
<pubDate>Sun, 24 Jan 2010 12:52:05 GMT</pubDate>
<guid>http://snipplr.com/view/26955/svn-log-only-for-this-branch/</guid>
</item>
<item>
<title>(Bash) Add readline editing and history capability to commandline interfaces - deepsoul</title>
<link>http://snipplr.com/view/17471/add-readline-editing-and-history-capability-to-commandline-interfaces/</link>
<description><![CDATA[ <p>You can use socat (http://www.dest-unreach.org/socat/) to add readline editing and history capability to command shells which do not themselves support it.  Each command line will be edited in the plain, so beware of password prompts.  Commands are printed again as they are passed on.</p> ]]></description>
<pubDate>Sun, 26 Jul 2009 16:11:27 GMT</pubDate>
<guid>http://snipplr.com/view/17471/add-readline-editing-and-history-capability-to-commandline-interfaces/</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) MySQL dump using SSH on Mac Terminal - hotdiggity</title>
<link>http://snipplr.com/view/16275/mysql-dump-using-ssh-on-mac-terminal/</link>
<description><![CDATA[ <p>Handy when web hosts limit database upload size. Create folder in home directory call "mysql_dump", upload and extract mysql file into this directory. Ask web host to enable SSH.</p> ]]></description>
<pubDate>Wed, 24 Jun 2009 22:44:39 GMT</pubDate>
<guid>http://snipplr.com/view/16275/mysql-dump-using-ssh-on-mac-terminal/</guid>
</item>
<item>
<title>(Bash) preview Markdown in the shell, without launching Firefox - noah</title>
<link>http://snipplr.com/view/15687/preview-markdown-in-the-shell-without-launching-firefox/</link>
<description><![CDATA[ <p>You may need to first `sudo gem install maruku` and install Lynx using your favorite package manager [or just download Lynx by itself](http://www.google.com/search?q=download+lynx)</p> ]]></description>
<pubDate>Mon, 08 Jun 2009 00:27:33 GMT</pubDate>
<guid>http://snipplr.com/view/15687/preview-markdown-in-the-shell-without-launching-firefox/</guid>
</item>
<item>
<title>(Bash) Command line to download latest Chromium nightly build - angusdev</title>
<link>http://snipplr.com/view/14010/command-line-to-download-latest-chromium-nightly-build/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 14 Apr 2009 00:11:10 GMT</pubDate>
<guid>http://snipplr.com/view/14010/command-line-to-download-latest-chromium-nightly-build/</guid>
</item>
<item>
<title>(Bash) Disable Stacktrace Filtering - kouphax</title>
<link>http://snipplr.com/view/10280/disable-stacktrace-filtering/</link>
<description><![CDATA[ <p>Use this command to prevent seeing ....68 more type stack trace message in Grails output.</p> ]]></description>
<pubDate>Fri, 05 Dec 2008 04:02:20 GMT</pubDate>
<guid>http://snipplr.com/view/10280/disable-stacktrace-filtering/</guid>
</item>
<item>
<title>(Bash) Delicious ego boost from the command line - noah</title>
<link>http://snipplr.com/view/9964/delicious-ego-boost-from-the-command-line/</link>
<description><![CDATA[ <p>This one-liner counts how many of the links to onemorebug.com there are on http://delicous.com/tag/noahsussman.

Basically it prints a number, and that number is the percentage of the top 100 links for that tag in delicious that point to your URL. 

Requires Grep, Lynx and Wc.</p> ]]></description>
<pubDate>Fri, 21 Nov 2008 22:29:39 GMT</pubDate>
<guid>http://snipplr.com/view/9964/delicious-ego-boost-from-the-command-line/</guid>
</item>
<item>
<title>(Bash) Howto Convert Filenames to All Lowercase - jonhenshaw</title>
<link>http://snipplr.com/view/7538/howto-convert-filenames-to-all-lowercase/</link>
<description><![CDATA[ <p>Line 6 starts a loop (which ends with line 15). The ls command returns a list of filenames which are sequentially assigned to the shell variable x. The if test (lines 8 through 10) checks to see if the current filename is that of a plain file. If not, the remainder of the statements in the current loop iteration are skipped.

If line 11 is to be executed we know that we have an ordinary file. Using tr we convert the filename to lowercase and assign the new name to the shell variable lc. Line 12 then checks to see if the lowercase version of the name differs from the original. If it does, line 13 is executed to change the name of the original file to the new lowercase name. The -i option causes the mv to prompt for confirmation if executing the command would overwrite an existing filename. __________________________</p> ]]></description>
<pubDate>Sun, 27 Jul 2008 17:34:08 GMT</pubDate>
<guid>http://snipplr.com/view/7538/howto-convert-filenames-to-all-lowercase/</guid>
</item>
<item>
<title>(Bash) Send Email Attachment from the Command Line - tylerhall</title>
<link>http://snipplr.com/view/5919/send-email-attachment-from-the-command-line/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 19 Apr 2008 16:10:45 GMT</pubDate>
<guid>http://snipplr.com/view/5919/send-email-attachment-from-the-command-line/</guid>
</item>
<item>
<title>(Bash) Get the length of a string on the command line with Ruby - noah</title>
<link>http://snipplr.com/view/5584/get-the-length-of-a-string-on-the-command-line-with-ruby/</link>
<description><![CDATA[ <p>The following command prints 21.</p> ]]></description>
<pubDate>Thu, 27 Mar 2008 23:08:41 GMT</pubDate>
<guid>http://snipplr.com/view/5584/get-the-length-of-a-string-on-the-command-line-with-ruby/</guid>
</item>
<item>
<title>(Bash) shopt (shell options) - cczona</title>
<link>http://snipplr.com/view/5393/shopt-shell-options/</link>
<description><![CDATA[ <p>//for options available, see:
http://www.ss64.com/bash/shopt.html</p> ]]></description>
<pubDate>Wed, 12 Mar 2008 20:31:38 GMT</pubDate>
<guid>http://snipplr.com/view/5393/shopt-shell-options/</guid>
</item>
<item>
<title>(Bash) Validate XHTML with Tidy and/or OpenJade, just like the FF extension - noah</title>
<link>http://snipplr.com/view/4970/validate-xhtml-with-tidy-andor-openjade-just-like-the-ff-extension/</link>
<description><![CDATA[ <p>Neither command will give any feedback unless invalid markup is found.</p> ]]></description>
<pubDate>Sun, 10 Feb 2008 02:14:45 GMT</pubDate>
<guid>http://snipplr.com/view/4970/validate-xhtml-with-tidy-andor-openjade-just-like-the-ff-extension/</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>
</channel>
</rss>