<?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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Mohammedz.com</title>
	<atom:link href="http://mohammednv.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mohammednv.wordpress.com</link>
	<description>My homepage</description>
	<lastBuildDate>Mon, 16 Nov 2009 03:23:01 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='mohammednv.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/071fe3f82c1d3659a3f801d2784917c0?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Mohammedz.com</title>
		<link>http://mohammednv.wordpress.com</link>
	</image>
			<item>
		<title>SED: change/insert/append lines after matching a pattern</title>
		<link>http://mohammednv.wordpress.com/2009/11/15/sed-changeinsertappend-lines-after-matching-a-pattern/</link>
		<comments>http://mohammednv.wordpress.com/2009/11/15/sed-changeinsertappend-lines-after-matching-a-pattern/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 11:34:20 +0000</pubDate>
		<dc:creator>Mohammed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts and Codes]]></category>
		<category><![CDATA[append]]></category>
		<category><![CDATA[append to address]]></category>
		<category><![CDATA[change]]></category>
		<category><![CDATA[change line]]></category>
		<category><![CDATA[insert]]></category>
		<category><![CDATA[insert address]]></category>
		<category><![CDATA[match pattern]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://mohammednv.wordpress.com/?p=342</guid>
		<description><![CDATA[Do you want to change/insert/append lines after matching a pattern from a file? If yes, you can use sed to do that.
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
I&#8217;m pasting the relevant parts from sed manpage followed by some examples.
a \
text &#8211; Append text, which has each embedded newline preceded by a backslash.
i \
text &#8211; Insert text, which has each embedded newline [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohammednv.wordpress.com&blog=2446359&post=342&subd=mohammednv&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://mohammednv.wordpress.com/2009/11/15/sed-changeinsertappend-lines-after-matching-a-pattern/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<georss:point>10.016609 76.295202</georss:point>
		<geo:lat>10.016609</geo:lat>
		<geo:long>76.295202</geo:long>
		<media:content url="http://1.gravatar.com/avatar/be2b0435debc04a462f0ecccdd9b58d0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Mohammed</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux commands: cut and paste</title>
		<link>http://mohammednv.wordpress.com/2009/11/15/linux-commands-cut-and-paste/</link>
		<comments>http://mohammednv.wordpress.com/2009/11/15/linux-commands-cut-and-paste/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 09:59:40 +0000</pubDate>
		<dc:creator>Mohammed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts and Codes]]></category>
		<category><![CDATA[cut]]></category>
		<category><![CDATA[paste]]></category>

		<guid isPermaLink="false">http://mohammednv.wordpress.com/2009/11/15/linux-commands-cut-and-paste/</guid>
		<description><![CDATA[cut and paste can be handy sometimes, especially when you have to manipulate
files based on rows and columns.
simple usages of cut and paste:
file1
******
first second
first second
first second
file2
******
3 4
3 4
3 4
Let me say, I want to cut first column of file2 and paste them as last column
of file1. Here you go
# cut -d&#8221; &#8221; -f1 file2 &#124;paste [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohammednv.wordpress.com&blog=2446359&post=340&subd=mohammednv&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://mohammednv.wordpress.com/2009/11/15/linux-commands-cut-and-paste/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2b0435debc04a462f0ecccdd9b58d0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Mohammed</media:title>
		</media:content>
	</item>
		<item>
		<title>SNMP packages for Debian Machine</title>
		<link>http://mohammednv.wordpress.com/2009/11/15/snmp-packages-for-debian-machine/</link>
		<comments>http://mohammednv.wordpress.com/2009/11/15/snmp-packages-for-debian-machine/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 07:08:52 +0000</pubDate>
		<dc:creator>Mohammed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[libsnmp]]></category>
		<category><![CDATA[snmp]]></category>

		<guid isPermaLink="false">http://mohammednv.wordpress.com/?p=338</guid>
		<description><![CDATA[If you want to configure SNMP on a Debian machine, you should install the following packages. You can use apt-get to install all these packages.
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
libsensors3_1%3a2.10.1-3_i386.deb
libsnmp9_5.2.3-7etch2_i386.deb
libsnmp-base_5.2.3-7etch2_all.deb
libsysfs2_2.1.0-1_i386.deb
snmp_5.2.3-7etch2_i386.deb
snmpd_5.2.3-7etch2_i386.deb
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
~mohammed
Posted in Linux       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohammednv.wordpress.com&blog=2446359&post=338&subd=mohammednv&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://mohammednv.wordpress.com/2009/11/15/snmp-packages-for-debian-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2b0435debc04a462f0ecccdd9b58d0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Mohammed</media:title>
		</media:content>
	</item>
		<item>
		<title>SED: newline and embedded newline characters</title>
		<link>http://mohammednv.wordpress.com/2009/11/15/sed-newline-and-embedded-newline-characters/</link>
		<comments>http://mohammednv.wordpress.com/2009/11/15/sed-newline-and-embedded-newline-characters/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 05:31:42 +0000</pubDate>
		<dc:creator>Mohammed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts and Codes]]></category>
		<category><![CDATA[embedded newline]]></category>
		<category><![CDATA[multiline]]></category>
		<category><![CDATA[newline]]></category>
		<category><![CDATA[pattern space]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://mohammednv.wordpress.com/2009/11/15/sed-newline-and-embedded-newline-characters/</guid>
		<description><![CDATA[The multiline Next (N) command creates a multiline pattern space by reading a new line of input and appending it to the contents of the pattern space. The original contents of pattern space and the new input line are separated by a newline. The embedded newline character can be matched in patterns by the escape [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohammednv.wordpress.com&blog=2446359&post=336&subd=mohammednv&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://mohammednv.wordpress.com/2009/11/15/sed-newline-and-embedded-newline-characters/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2b0435debc04a462f0ecccdd9b58d0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Mohammed</media:title>
		</media:content>
	</item>
		<item>
		<title>How to remove non-printable/control characters from a file?</title>
		<link>http://mohammednv.wordpress.com/2009/11/15/how-to-remove-non-printablecontrol-characters-from-a-file/</link>
		<comments>http://mohammednv.wordpress.com/2009/11/15/how-to-remove-non-printablecontrol-characters-from-a-file/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 04:00:56 +0000</pubDate>
		<dc:creator>Mohammed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts and Codes]]></category>
		<category><![CDATA[control character]]></category>
		<category><![CDATA[non-printable]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[tr]]></category>

		<guid isPermaLink="false">http://mohammednv.wordpress.com/?p=333</guid>
		<description><![CDATA[You may find difficulties with non-printables in your files. You can see such characters if you open your files in editors like vi. Eventhough commands like &#8220;cat&#8221; won&#8217;t output such non-printable characters into console by default, you can&#8217;t remove them by redirecting &#8220;cat&#8221; output to a different file.
Here is a way to remove non-printable characters [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohammednv.wordpress.com&blog=2446359&post=333&subd=mohammednv&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://mohammednv.wordpress.com/2009/11/15/how-to-remove-non-printablecontrol-characters-from-a-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2b0435debc04a462f0ecccdd9b58d0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Mohammed</media:title>
		</media:content>
	</item>
		<item>
		<title>TMOUT: How to set auto-logout time for SSH sessions</title>
		<link>http://mohammednv.wordpress.com/2009/11/14/tmout-how-to-set-auto-logout-time-for-ssh-sessions/</link>
		<comments>http://mohammednv.wordpress.com/2009/11/14/tmout-how-to-set-auto-logout-time-for-ssh-sessions/#comments</comments>
		<pubDate>Sat, 14 Nov 2009 03:47:17 +0000</pubDate>
		<dc:creator>Mohammed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts and Codes]]></category>
		<category><![CDATA[.bashrc]]></category>
		<category><![CDATA[.bash_profile]]></category>
		<category><![CDATA[auto-logout]]></category>
		<category><![CDATA[idle session]]></category>
		<category><![CDATA[timeout]]></category>
		<category><![CDATA[TMOUT]]></category>

		<guid isPermaLink="false">http://mohammednv.wordpress.com/?p=331</guid>
		<description><![CDATA[If you want to set timeouts for user sessions on your Linux machine, you can use the variable TMOUT. You can set a value for TMOUT in bash_profile or bashrc file.
# auto-logout if the shell session is idle for 1 hour
TMOUT=3600
~mohammed
Posted in Linux, Scripts and Codes       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohammednv.wordpress.com&blog=2446359&post=331&subd=mohammednv&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://mohammednv.wordpress.com/2009/11/14/tmout-how-to-set-auto-logout-time-for-ssh-sessions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2b0435debc04a462f0ecccdd9b58d0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Mohammed</media:title>
		</media:content>
	</item>
		<item>
		<title>How to find past/future dates?</title>
		<link>http://mohammednv.wordpress.com/2009/11/11/how-to-find-pastfuture-dates/</link>
		<comments>http://mohammednv.wordpress.com/2009/11/11/how-to-find-pastfuture-dates/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 07:31:35 +0000</pubDate>
		<dc:creator>Mohammed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts and Codes]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[day ago]]></category>
		<category><![CDATA[future data]]></category>
		<category><![CDATA[month ago]]></category>
		<category><![CDATA[next date]]></category>
		<category><![CDATA[old date]]></category>
		<category><![CDATA[past date]]></category>
		<category><![CDATA[previous date]]></category>
		<category><![CDATA[year ago]]></category>

		<guid isPermaLink="false">http://mohammednv.wordpress.com/?p=328</guid>
		<description><![CDATA[what day it was exactly one month ago? Are you counting down the days to find it? Or searching for a calender?
You can use &#8220;date&#8221; command in such situations. See the example below:
****************************************
-bash-3.1$ date +%F
2009-06-29
-bash-3.1$ date -d&#8221;1 day ago&#8221; +%F
2009-06-28
-bash-3.1$ date -d&#8221;1 week ago&#8221; +%F
2009-06-22
-bash-3.1$ date -d&#8221;1 month ago&#8221; +%F
2009-05-29
-bash-3.1$ date -d&#8221;1 year ago&#8221; +%F
2008-06-29
-bash-3.1$
****************************************
These [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohammednv.wordpress.com&blog=2446359&post=328&subd=mohammednv&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://mohammednv.wordpress.com/2009/11/11/how-to-find-pastfuture-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2b0435debc04a462f0ecccdd9b58d0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Mohammed</media:title>
		</media:content>
	</item>
		<item>
		<title>Apache: how to disable directory listing</title>
		<link>http://mohammednv.wordpress.com/2009/11/08/apache-how-to-disable-directory-listing/</link>
		<comments>http://mohammednv.wordpress.com/2009/11/08/apache-how-to-disable-directory-listing/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 07:50:38 +0000</pubDate>
		<dc:creator>Mohammed</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[directory browsing]]></category>
		<category><![CDATA[directory listing]]></category>
		<category><![CDATA[httpd.conf]]></category>
		<category><![CDATA[indexes]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mohammednv.wordpress.com/?p=325</guid>
		<description><![CDATA[Disable directory listing using httpd.conf:
* Open your httpd.conf and look for &#8220;Options Indexes&#8221;
* Change &#8220;Indexes&#8221; to &#8220;-Indexes&#8221; if it exists.
* Or else add &#8220;Options -Indexes&#8221; as a new line
* Restart your apache webserver
Disable directory listing using .htaccess:-
* Open your .htacces file and look for &#8220;Options Indexes&#8221;
* Change &#8220;Indexes&#8221; to &#8220;-Indexes&#8221; if it exists.
* Or else [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohammednv.wordpress.com&blog=2446359&post=325&subd=mohammednv&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://mohammednv.wordpress.com/2009/11/08/apache-how-to-disable-directory-listing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2b0435debc04a462f0ecccdd9b58d0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Mohammed</media:title>
		</media:content>
	</item>
		<item>
		<title>Array manipulation in shell scripting</title>
		<link>http://mohammednv.wordpress.com/2009/11/08/array-manipulation-in-shell-scripting/</link>
		<comments>http://mohammednv.wordpress.com/2009/11/08/array-manipulation-in-shell-scripting/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 05:29:17 +0000</pubDate>
		<dc:creator>Mohammed</dc:creator>
				<category><![CDATA[Scripts and Codes]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[array index]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://mohammednv.wordpress.com/?p=322</guid>
		<description><![CDATA[Best way to understand shell scripting is from examples. Find the example below to understand different options available in bash array manipulation.
You can down this script from here.
*********************************
#!/bin/bash
array=(one two three four [5]=five)
echo &#8220;Array size: ${#array[*]}&#8221;
echo &#8220;Array items:&#8221;
for item in ${array[*]}
do
printf &#8221; %s\n&#8221; $item
done
echo &#8220;Array indexes:&#8221;
for index in ${!array[*]}
do
printf &#8221; %d\n&#8221; $index
done
echo &#8220;Array items and indexes:&#8221;
for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohammednv.wordpress.com&blog=2446359&post=322&subd=mohammednv&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://mohammednv.wordpress.com/2009/11/08/array-manipulation-in-shell-scripting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2b0435debc04a462f0ecccdd9b58d0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Mohammed</media:title>
		</media:content>
	</item>
		<item>
		<title>HISTTIMEFORMAT: add execution time to Linux&#8217;s history file</title>
		<link>http://mohammednv.wordpress.com/2009/11/07/histtimeformat-add-execution-time-to-linuxs-history-file/</link>
		<comments>http://mohammednv.wordpress.com/2009/11/07/histtimeformat-add-execution-time-to-linuxs-history-file/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 08:32:23 +0000</pubDate>
		<dc:creator>Mohammed</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts and Codes]]></category>
		<category><![CDATA[bash_history]]></category>
		<category><![CDATA[history]]></category>
		<category><![CDATA[HISTTIMEFORMAT]]></category>
		<category><![CDATA[timestamp]]></category>

		<guid isPermaLink="false">http://mohammednv.wordpress.com/2009/11/07/histtimeformat-add-execution-time-to-linuxs-history-file/</guid>
		<description><![CDATA[As you might know, Linux logs all the commands executed on a shell prompt to its history file. The file is .bash_history by default, but you can change it. Also, you can change HISTTIMEFORMAT to enable timestamping to history.
If you add the following line to your bashrc or bash_profile, the time stamp information associated with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mohammednv.wordpress.com&blog=2446359&post=321&subd=mohammednv&ref=&feed=1" />]]></description>
		<wfw:commentRss>http://mohammednv.wordpress.com/2009/11/07/histtimeformat-add-execution-time-to-linuxs-history-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be2b0435debc04a462f0ecccdd9b58d0?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">Mohammed</media:title>
		</media:content>
	</item>
	</channel>
</rss>