<?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>Web Surf Shack &#187; bash</title>
	<atom:link href="http://www.websurfshack.net/tag/bash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.websurfshack.net</link>
	<description>Waxing your internet surf board</description>
	<lastBuildDate>Wed, 21 Apr 2010 07:58:19 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MIME Email attachments from command line.</title>
		<link>http://www.websurfshack.net/2009/08/mime-email-attachments-from-command-line/</link>
		<comments>http://www.websurfshack.net/2009/08/mime-email-attachments-from-command-line/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 16:30:35 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=333</guid>
		<description><![CDATA[I searched for ages to find a half decient example to send mime attachments from the command line that allows you to specify the from and to address. I found some applications however some either didnt let you specify the from address and others didnt let you do multi-part mime messages and the rest suggested [...]]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/08/mime-email-attachments-from-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sed tricks</title>
		<link>http://www.websurfshack.net/2009/08/sed-tricks/</link>
		<comments>http://www.websurfshack.net/2009/08/sed-tricks/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 13:34:57 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sed command line]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/2009/08/sed-tricks/</guid>
		<description><![CDATA[If you know what Unix Sed is it is a way to use regular expressions to change the contents of a file and then save or display it. Generally sed commands are written like this&#8230;
cat filename &#124; sed 's/thsi/this/'
Every occurance of &#8216;thsi&#8217; will be replaced with this. You can also add on the redirect operator [...]]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/08/sed-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screen</title>
		<link>http://www.websurfshack.net/2009/07/screen/</link>
		<comments>http://www.websurfshack.net/2009/07/screen/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 09:11:27 +0000</pubDate>
		<dc:creator>jimmy</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=321</guid>
		<description><![CDATA[There is a very useful application with plenty of features that can be downloaded easily.
One of the best features is the ability to start a screen session in ssh from one location, disconnect it then reconnect it at a later time from a different session.
Get it now: aptitude install screen
As it is to be used [...]]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/07/screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash filename string manipulation</title>
		<link>http://www.websurfshack.net/2009/04/bash-filename-string-manipulation/</link>
		<comments>http://www.websurfshack.net/2009/04/bash-filename-string-manipulation/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 12:18:11 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[filename]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=268</guid>
		<description><![CDATA[A common task in bash is to retrieve the details from a string containing a filename. This handy summary helps you quickly get the data you need from the variable.
Consider the following variable

FILE = ref/paper/some.ps.gz

then the following vars are available:

${FILE#*/}			returns the path with the first directory removed:	paper/some.ps.gz
${FILE##*/}			returns the file name with all directories removed:	some.ps.gz
$(basename $FILE)	returns [...]]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2009/04/bash-filename-string-manipulation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uploading a binary file into MySQL</title>
		<link>http://www.websurfshack.net/2008/12/uploading-a-binary-file-into-mysql/</link>
		<comments>http://www.websurfshack.net/2008/12/uploading-a-binary-file-into-mysql/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 11:04:01 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[SQL]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[binary]]></category>
		<category><![CDATA[hex]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=70</guid>
		<description><![CDATA[If your MySQL database is running on a remote server then it can be quite a job to load a binary file (such as a jpg, movie or zip file) directly into the database when you have no file access to that server.
This bash script gets round the problem by converting the file to HEX [...]]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2008/12/uploading-a-binary-file-into-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic Bash Stuff</title>
		<link>http://www.websurfshack.net/2008/11/basic-bash-scripting/</link>
		<comments>http://www.websurfshack.net/2008/11/basic-bash-scripting/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 22:27:16 +0000</pubDate>
		<dc:creator>james</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://www.websurfshack.net/?p=60</guid>
		<description><![CDATA[Some resources for bash scripting
BASH String Manipulation
 Bash How To


Sed
What a night mare. Heres an excellent reference to sed :
http://www.grymoire.com/Unix/Sed.html
Some bits&#8217;n pieces:
 If.. then... else
if [ "$ERRORCODE" != "0" ]; then
echo &#8220;error!&#8221;
else
echo &#8220;pass!&#8221;
fi
See our more recent post on bash string filename manipulation.
]]></description>
		<wfw:commentRss>http://www.websurfshack.net/2008/11/basic-bash-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
