<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Sven Welzel - blog.sven.co.za - www.svenwelzel.com &#187; bash</title> <atom:link href="http://blog.sven.co.za/tag/bash/feed/" rel="self" type="application/rss+xml" /><link>http://blog.sven.co.za</link> <description>The Blog of Sven Welzel</description> <lastBuildDate>Mon, 22 Aug 2011 09:13:45 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>Search and view gzip&#8217;d files</title><link>http://blog.sven.co.za/2010/10/21/search-and-view-gzipd-files/</link> <comments>http://blog.sven.co.za/2010/10/21/search-and-view-gzipd-files/#comments</comments> <pubDate>Thu, 21 Oct 2010 16:09:59 +0000</pubDate> <dc:creator>Sven Welzel</dc:creator> <category><![CDATA[bash]]></category> <category><![CDATA[code]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[sysadmin]]></category> <category><![CDATA[gzip]]></category> <category><![CDATA[search]]></category> <category><![CDATA[zcat]]></category> <category><![CDATA[zgrep]]></category> <guid
isPermaLink="false">http://blog.sven.co.za/?p=1004</guid> <description><![CDATA[You knew it already &#8211; but I keep forgetting &#8211; the power of zgrep and zcat both of which behave as their z-less counterparts. So, to search a gzip&#8217;d file, you can simply zgrep &#60;term&#62; &#60;filename.gz&#62;, or to cat/view it, zcat &#60;filename.gz&#62; Good to come back to in case of impending forgetfulness&#8230;]]></description> <wfw:commentRss>http://blog.sven.co.za/2010/10/21/search-and-view-gzipd-files/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Search all files for TEXT in bash</title><link>http://blog.sven.co.za/2010/08/09/search-all-files-for-text-in-bash/</link> <comments>http://blog.sven.co.za/2010/08/09/search-all-files-for-text-in-bash/#comments</comments> <pubDate>Mon, 09 Aug 2010 20:12:57 +0000</pubDate> <dc:creator>Sven Welzel</dc:creator> <category><![CDATA[bash]]></category> <category><![CDATA[code]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[sysadmin]]></category> <category><![CDATA[files]]></category> <category><![CDATA[find]]></category> <category><![CDATA[text]]></category> <guid
isPermaLink="false">http://blog.sven.co.za/?p=974</guid> <description><![CDATA[To find all files by file name containing THE TEXT I SEEK: grep -lir "THE TEXT I SEEK" * Had to list it as I always forget. But you know that already&#8230;]]></description> <wfw:commentRss>http://blog.sven.co.za/2010/08/09/search-all-files-for-text-in-bash/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>On the fly compression of a tar-ball or mysqldump</title><link>http://blog.sven.co.za/2010/07/14/on-the-fly-compression-of-a-tar-ball-or-mysqldump/</link> <comments>http://blog.sven.co.za/2010/07/14/on-the-fly-compression-of-a-tar-ball-or-mysqldump/#comments</comments> <pubDate>Wed, 14 Jul 2010 12:47:49 +0000</pubDate> <dc:creator>Sven Welzel</dc:creator> <category><![CDATA[bash]]></category> <category><![CDATA[code]]></category> <category><![CDATA[Did you know]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[sysadmin]]></category> <category><![CDATA[backup]]></category> <category><![CDATA[compression]]></category> <category><![CDATA[gzip]]></category> <category><![CDATA[locking]]></category> <category><![CDATA[mysqldump]]></category> <category><![CDATA[on the fly]]></category> <category><![CDATA[pipe]]></category> <category><![CDATA[tar]]></category> <guid
isPermaLink="false">http://blog.sven.co.za/?p=942</guid> <description><![CDATA[Just to jot it down lest I forget: Tar&#8217;ing the local directory and streaming the tarball straight to gzip: tar cvf - . &#124; gzip &#62; target.tar.gz MySQLdump&#8217;ing directly to gzip: mysqldump --opt --single-transaction -h HOST -u  USER -pPASS DATABASENAME&#124; gzip &#62; OUTPUT.sql.gz Using --single-transaction above to avoid locking restrictions on the tables, and it&#8217;s [...]]]></description> <wfw:commentRss>http://blog.sven.co.za/2010/07/14/on-the-fly-compression-of-a-tar-ball-or-mysqldump/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Create a Tar file from Directory and all Subdirectories</title><link>http://blog.sven.co.za/2010/06/28/create-a-tar-file-from-directory-and-all-subdirectories/</link> <comments>http://blog.sven.co.za/2010/06/28/create-a-tar-file-from-directory-and-all-subdirectories/#comments</comments> <pubDate>Mon, 28 Jun 2010 08:11:41 +0000</pubDate> <dc:creator>Sven Welzel</dc:creator> <category><![CDATA[bash]]></category> <category><![CDATA[code]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[sysadmin]]></category> <category><![CDATA[7za]]></category> <category><![CDATA[7zip]]></category> <category><![CDATA[backup]]></category> <category><![CDATA[gzip]]></category> <category><![CDATA[keyless ssh]]></category> <category><![CDATA[login]]></category> <category><![CDATA[scp]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[tar]]></category> <guid
isPermaLink="false">http://blog.sven.co.za/?p=852</guid> <description><![CDATA[It&#8217;s a simple one-liner that one tends to forget (that is, one that I forget as I untar more than I manually tar). So creating a tar file from directory and all subdirectories is as simple as tar -cvf file.tar directory To compress it on the fly, pipe it to your favourite compression application (compress, [...]]]></description> <wfw:commentRss>http://blog.sven.co.za/2010/06/28/create-a-tar-file-from-directory-and-all-subdirectories/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Secure SSH Tunneling &#8211; at no extra cost</title><link>http://blog.sven.co.za/2010/06/19/secure-ssh-tunneling-at-no-extra-cost/</link> <comments>http://blog.sven.co.za/2010/06/19/secure-ssh-tunneling-at-no-extra-cost/#comments</comments> <pubDate>Sat, 19 Jun 2010 09:20:49 +0000</pubDate> <dc:creator>Sven Welzel</dc:creator> <category><![CDATA[bash]]></category> <category><![CDATA[code]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[security]]></category> <category><![CDATA[sysadmin]]></category> <category><![CDATA[windows]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[port forwarding]]></category> <category><![CDATA[putty]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[terminal]]></category> <category><![CDATA[tunnel]]></category> <guid
isPermaLink="false">http://blog.sven.co.za/?p=824</guid> <description><![CDATA[Assuming you have a Windows machine and you interact with Linux boxen at any stage, chances are high that you have used and interacted with PuTTY at one stage or another. That beautiful, less than 2 sec, 444K download of a tool (currently at version 0.60 beta) allows you to SSH, COM-direct, RSH, Telnet etc [...]]]></description> <wfw:commentRss>http://blog.sven.co.za/2010/06/19/secure-ssh-tunneling-at-no-extra-cost/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Install Webmin on Ubuntu</title><link>http://blog.sven.co.za/2010/05/31/install-webmin-on-ubuntu/</link> <comments>http://blog.sven.co.za/2010/05/31/install-webmin-on-ubuntu/#comments</comments> <pubDate>Mon, 31 May 2010 06:58:04 +0000</pubDate> <dc:creator>Sven Welzel</dc:creator> <category><![CDATA[bash]]></category> <category><![CDATA[code]]></category> <category><![CDATA[Did you know]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[sysadmin]]></category> <category><![CDATA[howto]]></category> <category><![CDATA[install]]></category> <category><![CDATA[sh]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[webmin]]></category> <guid
isPermaLink="false">http://blog.sven.co.za/?p=753</guid> <description><![CDATA[Just a quick note (as I keep forgetting, and a cut-and-paste solution is a quicker time to market) &#8211; but you knew that already. Installing Webmin is quite simple (download directly, or from the mirrors). Currently, 1.510-2 is the latest version &#8211; check on www.webmin.com for further details. As an aside, the book Webmin Kompakt [...]]]></description> <wfw:commentRss>http://blog.sven.co.za/2010/05/31/install-webmin-on-ubuntu/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Testing POP3 and IMAP servers from the command line in CMD or bash</title><link>http://blog.sven.co.za/2010/04/25/testing-pop3-and-imap-servers-from-the-command-line-in-cmd-or-bash/</link> <comments>http://blog.sven.co.za/2010/04/25/testing-pop3-and-imap-servers-from-the-command-line-in-cmd-or-bash/#comments</comments> <pubDate>Sun, 25 Apr 2010 20:00:58 +0000</pubDate> <dc:creator>Sven Welzel</dc:creator> <category><![CDATA[bash]]></category> <category><![CDATA[code]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[sysadmin]]></category> <category><![CDATA[windows]]></category> <category><![CDATA[command line]]></category> <category><![CDATA[Exchange]]></category> <category><![CDATA[imap]]></category> <category><![CDATA[pop3]]></category> <category><![CDATA[shell]]></category> <category><![CDATA[telnet]]></category> <guid
isPermaLink="false">http://blog.sven.co.za/?p=680</guid> <description><![CDATA[It&#8217;s quite simple, really: POP3 (Exchange, dovecot etc) you know, IMAP (Exchange, dovecot, courier etc) you know &#8212; so this is just a recap, right? You know how to telnet into the machine &#8212; in Vista or Windows 7, you may need to install it separately using &#8220;Add/Remove Programs&#8221;, or just use Putty in Telnet [...]]]></description> <wfw:commentRss>http://blog.sven.co.za/2010/04/25/testing-pop3-and-imap-servers-from-the-command-line-in-cmd-or-bash/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Wipe all mp3s and avis from the filesystem</title><link>http://blog.sven.co.za/2009/09/08/wipe-all-mp3s-and-avis-from-the-filesystem/</link> <comments>http://blog.sven.co.za/2009/09/08/wipe-all-mp3s-and-avis-from-the-filesystem/#comments</comments> <pubDate>Tue, 08 Sep 2009 19:39:12 +0000</pubDate> <dc:creator>Sven Welzel</dc:creator> <category><![CDATA[bash]]></category> <category><![CDATA[code]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[open source software]]></category> <category><![CDATA[sysadmin]]></category> <category><![CDATA[delete]]></category> <category><![CDATA[divx]]></category> <category><![CDATA[mp3]]></category> <guid
isPermaLink="false">http://blog.sven.co.za/?p=167</guid> <description><![CDATA[So you want to run a script that removes all mp3 and avi files off the filesystem. One way (in bash) as below. Comment, suggestions and feedback are welcome Using $EUID to check for root user, and $IFS to check for line breaks as the file names has spaces in them. IFS is saved to [...]]]></description> <wfw:commentRss>http://blog.sven.co.za/2009/09/08/wipe-all-mp3s-and-avis-from-the-filesystem/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
