<?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>Pario TechnoBlob &#187; shell</title>
	<atom:link href="http://pario.no/tag/shell/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 02 Feb 2012 13:17:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Align output from commands using column</title>
		<link>http://pario.no/2008/02/01/align-output-from-commands-using-column/</link>
		<comments>http://pario.no/2008/02/01/align-output-from-commands-using-column/#comments</comments>
		<pubDate>Fri, 01 Feb 2008 21:41:52 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[column]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://pario.no/2008/02/01/align-output-from-commands-using-column/</guid>
		<description><![CDATA[The column command is a little shell command that makes it easy to print the results in a aligned fashion. Example 1 /dev/mapper/vg0-root on / type ext3 (rw,errors=remount-ro) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) procbususb on /proc/bus/usb type usbfs (rw) udev on /dev [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>column</strong> command is a little shell command that makes it easy to print the results in a aligned fashion.</p>
<p><strong>Example 1</strong></p>
<pre>
/dev/mapper/vg0-root  on  /              type  ext3    (rw,errors=remount-ro)
tmpfs                 on  /lib/init/rw   type  tmpfs   (rw,nosuid,mode=0755)
proc                  on  /proc          type  proc    (rw,noexec,nosuid,nodev)
sysfs                 on  /sys           type  sysfs   (rw,noexec,nosuid,nodev)
procbususb            on  /proc/bus/usb  type  usbfs   (rw)
udev                  on  /dev           type  tmpfs   (rw,mode=0755)
tmpfs                 on  /dev/shm       type  tmpfs   (rw,nosuid,nodev)
devpts                on  /dev/pts       type  devpts  (rw,noexec,nosuid,gid=5,mode=620)
/dev/mapper/vg0-home  on  /home          type  ext3    (rw)
/dev/mapper/vg0-tmp   on  /tmp           type  ext3    (rw,nosuid)
/dev/mapper/vg0-var   on  /var           type  ext3    (rw)</pre>
<p><strong>Example 2</strong></p>
<pre>
cat /etc/passwd | column -t -s ":"</pre>
<p>or</p>
<pre>
column -t -s ":" /etc/passwd</pre>
<p><strong>Result example 2</strong></p>
<pre>
lp           x   7      7      lp                                  /var/spool/lpd         /bin/sh
mail         x   8      8      mail                                /var/mail              /bin/sh
news         x   9      9      news                                /var/spool/news        /bin/sh
uucp         x   10     10     uucp                                /var/spool/uucp        /bin/sh
proxy        x   13     13     proxy                               /bin                   /bin/sh
www-data     x   33     33     www-data                            /var/www               /bin/sh
backup       x   34     34     backup                              /var/backups           /bin/sh
list         x   38     38     Mailing List Manager                /var/list              /bin/sh
irc          x   39     39     ircd                                /var/run/ircd          /bin/sh
gnats        x   41     41     Gnats Bug-Reporting System (admin)  /var/lib/gnats         /bin/sh
nobody       x   65534  65534  nobody                              /nonexistent           /bin/sh</pre>
<p><strong>The column command supports the following options</strong></p>
<pre>
-c      Output is formatted for a display columns wide.

-n      By default, the column command will merge multiple adjacent delimiters into a single delimiter when using
         the -t option; this option disables that behavior.

-s      Specify a set of characters to be used to delimit columns for the -t option.

-t      Determine the number of columns the input contains and create a table.  Columns are delimited with whites‐
         pace, by default, or with the characters supplied using the -s option.  Useful for pretty-printing dis‐
         plays.

-x      Fill columns before filling rows.</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMDIvMDEvYWxpZ24tb3V0cHV0LWZyb20tY29tbWFuZHMtdXNpbmctY29sdW1uLzx3cHRiPkFsaWduIG91dHB1dCBmcm9tIGNvbW1hbmRzIHVzaW5nIGNvbHVtbjx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/02/01/align-output-from-commands-using-column/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating WordPress using a bash script</title>
		<link>http://pario.no/2007/10/28/updating-wordpress-using-a-bash-script/</link>
		<comments>http://pario.no/2007/10/28/updating-wordpress-using-a-bash-script/#comments</comments>
		<pubDate>Sat, 27 Oct 2007 22:37:32 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://pario.no/2007/10/28/updating-wordpress-using-a-bash-script/</guid>
		<description><![CDATA[If you have shell access to your webserver this script can be used to upgrade your WordPress installation to the latest version quickly. Always remeber to backup your database and installation files before running it! Do change the bold text to reflect your WordPress Internet address before you run the script. #!/bin/bash CURDIR=$(pwd) SITE="http://yoursite.com/wordpress" echo [...]]]></description>
			<content:encoded><![CDATA[<p>If you have shell access to your webserver this script can be used to upgrade your WordPress installation to the latest version quickly. Always remeber to backup your database and installation files before running it!</p>
<p>Do change the bold text to reflect your WordPress Internet address before you run the script.</p>
<pre>
#!/bin/bash
CURDIR=$(pwd)
SITE="http://<strong>yoursite.com/wordpress</strong>"
echo Updating WordPress located in $CURDIR
echo 1. Downloading latest WordPress install file.
wget -q http://wordpress.org/latest.tar.gz
echo 2.  Unpacking downloaded file.
tar zxf latest.tar.gz
cd wordpress/
echo 3.  Replacing old files with the unpacked ones.
tar cf - . | (cd $CURDIR; tar xf -)
echo 4.  Update the WordPress installation.
wget -q -O - ${SITE}/wp-admin/upgrade.php?step=1&gt; /dev/null
echo 5.  Removing the WordPress file downloaded recently.
rm -f ../latest.tar.gz
echo 6.  WordPress is now upgraded.</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDcvMTAvMjgvdXBkYXRpbmctd29yZHByZXNzLXVzaW5nLWEtYmFzaC1zY3JpcHQvPHdwdGI%2BVXBkYXRpbmcgV29yZFByZXNzIHVzaW5nIGEgYmFzaCBzY3JpcHQ8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2007/10/28/updating-wordpress-using-a-bash-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

