<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Yabfog &#187; bash</title>
	<atom:link href="http://yabfog.com/blog/tag/bash/feed" rel="self" type="application/rss+xml" />
	<link>http://yabfog.com/blog</link>
	<description>Yet another blog full of gas</description>
	<lastBuildDate>Tue, 17 Apr 2012 18:51:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<cloud domain='yabfog.com' port='80' path='/blog/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>WordPress Update Bash Script</title>
		<link>http://yabfog.com/blog/2011/12/12/wordpress-update-bash-script</link>
		<comments>http://yabfog.com/blog/2011/12/12/wordpress-update-bash-script#comments</comments>
		<pubDate>Tue, 13 Dec 2011 02:45:22 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://yabfog.com/blog/?p=91778603</guid>
		<description><![CDATA[I wrote this script some time ago. It's been working flawlessly for me, so I thought I'd share it here. It could use some progress messages, I suppose. #!/bin/bash DIR= # Put the file system path to your WordPress installation here. E.g., /var/www/html/blog TMPDIR=$HOME/tmp WPDIR=$TMPDIR/wordpress cd $TMPDIR rm -rf latest.zip ./wordpress # Clean up from [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote this script some time ago. It's been working flawlessly for me, so I thought I'd share it here. It could use some progress messages, I suppose.</p>
<p><code><br />
#!/bin/bash<br />
DIR= # Put the file system path to your WordPress installation here. E.g., /var/www/html/blog<br />
TMPDIR=$HOME/tmp<br />
WPDIR=$TMPDIR/wordpress<br />
cd $TMPDIR<br />
rm -rf latest.zip ./wordpress # Clean up from the last run<br />
wget -nd http://wordpress.org/latest.zip<br />
unzip latest.zip<br />
mv $DIR/wp-config.php $DIR/.config # Stash your configuration someplace safe<br />
rm $DIR/*.{txt,html,php} # Delete the old install<br />
rm -rf $DIR/{wp-admin,wp-includes} # Delete more. Don't delete plugins or themes.<br />
cp -aR $WPDIR/* $DIR/<br />
mv $DIR/.config $DIR/wp-config.php # Restore the configuration<br />
# You may not need the last two lines. I like to give my web server the ability to write files.<br />
chown -R .www-data $DIR/*.php $DIR/wp-admin $DIR/wp-includes<br />
chmod -R g+w $DIR/*.php $DIR/wp-includes<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2011/12/12/wordpress-update-bash-script/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
	</item>
		<item>
		<title>Bash script: ted</title>
		<link>http://yabfog.com/blog/2005/07/21/bash_script_ted</link>
		<comments>http://yabfog.com/blog/2005/07/21/bash_script_ted#comments</comments>
		<pubDate>Thu, 21 Jul 2005 16:05:25 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I just wrote a little bash script, "ted" (for Tracking EDitor), which I am loving. You call ted like you would call your usual text editor, and ted backs up the file you're editing, appending the originial timestamp as a suffix. Then, when you're done editing the file, ted runs diff to keep a running [...]]]></description>
			<content:encoded><![CDATA[<p>I just wrote a little bash script, "ted" (for <b>T</b>racking <b>ED</b>itor), which I am loving. You call <code>ted</code> like you would call your usual text editor, and <code>ted</code> backs up the file you're editing, appending the originial timestamp as a suffix. Then, when you're done editing the file, ted runs <code>diff</code> to keep a running log of changes you've made to the file. If you've made no changes, <code>ted</code> removes the backup file and exits without running <code>diff</code>.</p>
<p>Introducing: <a href="http://yabfog.com/files/ted.sh">ted</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://yabfog.com/blog/2005/07/21/bash_script_ted/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
	</item>
	</channel>
</rss>

