<?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>Linux 101 Hacks &#187; 11. BASH Scripting</title>
	<atom:link href="http://linux.101hacks.com/category/bash-scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://linux.101hacks.com</link>
	<description>Free eBook to Build a Strong Foundation in UNIX / Linux</description>
	<lastBuildDate>Fri, 09 Dec 2011 06:07:51 +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>Hack 88. Read data file fields inside a shell script</title>
		<link>http://linux.101hacks.com/bash-scripting/read-data-file-fields-inside-a-shell-script/</link>
		<comments>http://linux.101hacks.com/bash-scripting/read-data-file-fields-inside-a-shell-script/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 01:31:40 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[11. BASH Scripting]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=275</guid>
		<description><![CDATA[This example shows how to read a particular field from a data-file and manipulate it inside a shell-script. For example, let us assume the employees.txt file is in the format of {employee-name}:{employee-id}:{department-name}, with colon delimited file as shown below. $ cat employees.txt Emma Thomas:100:Marketing Alex Jason:200:Sales Madison Randy:300:Product Development Sanjay Gupta:400:Support Nisha Singh:500:Sales The following [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/bash-scripting/read-data-file-fields-inside-a-shell-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Hack 87. Single Quote and Double Quote Inside Shell Script</title>
		<link>http://linux.101hacks.com/bash-scripting/quotes-inside-shell-script/</link>
		<comments>http://linux.101hacks.com/bash-scripting/quotes-inside-shell-script/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 01:30:05 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[11. BASH Scripting]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=273</guid>
		<description><![CDATA[Let us review how to use single quote and double quote inside a shell script. Following example displays an echo statement without any special character. $ echo The Geek Stuff The Geek Stuff Echo statement with a special character ; . semi-colon is a command terminator in bash. In the following example, “The Geek” works [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/bash-scripting/quotes-inside-shell-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack 86. How to Debug a shell script</title>
		<link>http://linux.101hacks.com/bash-scripting/debug-a-shell-script/</link>
		<comments>http://linux.101hacks.com/bash-scripting/debug-a-shell-script/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 01:27:15 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[11. BASH Scripting]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=271</guid>
		<description><![CDATA[To debug a shell script use set –xv inside the shell script at the top. Shell script with no debug command: $ cat filesize.sh #!/bin/bash for filesize in $(ls -l . &#124; grep "^-" &#124; awk '{print $5}') do let totalsize=$totalsize+$filesize done echo "Total file size in current directory: $totalsize" Output of Shell script with [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/bash-scripting/debug-a-shell-script/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Hack 85. How to generate random number in bash shell</title>
		<link>http://linux.101hacks.com/bash-scripting/random-number-generato/</link>
		<comments>http://linux.101hacks.com/bash-scripting/random-number-generato/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 01:25:32 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[11. BASH Scripting]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=269</guid>
		<description><![CDATA[Use the $RANDOM bash built-in function to generate random number between 0 – 32767 as shown below. $ echo $RANDOM 22543 $ echo $RANDOM 25387 $ echo $RANDOM 647]]></description>
		<wfw:commentRss>http://linux.101hacks.com/bash-scripting/random-number-generato/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hack 84. Execution Sequence of .bash_* files</title>
		<link>http://linux.101hacks.com/bash-scripting/execution-sequence-of-bash-files/</link>
		<comments>http://linux.101hacks.com/bash-scripting/execution-sequence-of-bash-files/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 01:24:01 +0000</pubDate>
		<dc:creator>Ramesh</dc:creator>
				<category><![CDATA[11. BASH Scripting]]></category>

		<guid isPermaLink="false">http://linux.101hacks.com/?p=266</guid>
		<description><![CDATA[What is the sequence in which the following files are executed? /etc/profile ~/.bash_profile ~/.bashrc ~/.bash_login ~/.profile ~/.bash_logout Execution sequence for interactive login shell Following pseudo code explains the sequence of execution of these files. execute /etc/profile IF ~/.bash_profile exists THEN execute ~/.bash_profile ELSE IF ~/.bash_login exist THEN execute ~/.bash_login ELSE IF ~/.profile exist THEN execute [...]]]></description>
		<wfw:commentRss>http://linux.101hacks.com/bash-scripting/execution-sequence-of-bash-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.101hacks.com

Served from: linux.101hacks.com @ 2012-02-04 04:06:48 -->
