<?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 Explore &#187; shell scripting</title>
	<atom:link href="https://blog.linuxexplore.com/tag/shell-scripting/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.linuxexplore.com</link>
	<description>Exploring Linux</description>
	<lastBuildDate>Mon, 07 Apr 2014 00:30:50 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.0.38</generator>
	<item>
		<title>How to find USB device in Linux</title>
		<link>https://blog.linuxexplore.com/2013/01/01/how-to-find-usb-device-in-linux/</link>
		<comments>https://blog.linuxexplore.com/2013/01/01/how-to-find-usb-device-in-linux/#comments</comments>
		<pubDate>Tue, 01 Jan 2013 11:52:18 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore Tips & Tricks]]></category>
		<category><![CDATA[/var/log/messages]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gadgets]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Linux Tricks]]></category>
		<category><![CDATA[log messages]]></category>
		<category><![CDATA[messages]]></category>
		<category><![CDATA[script shell]]></category>
		<category><![CDATA[scsi device]]></category>
		<category><![CDATA[shell command]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[shellscript]]></category>
		<category><![CDATA[sysfs]]></category>
		<category><![CDATA[UDEV]]></category>
		<category><![CDATA[udevadm]]></category>
		<category><![CDATA[udevinfo]]></category>
		<category><![CDATA[USB device]]></category>
		<category><![CDATA[usb storage]]></category>

		<guid isPermaLink="false">http://linuxexplore.com/?p=670</guid>
		<description><![CDATA[I wondered when I had to find the USB device name in Linux using shell script (shell command), it was little tricky, specially in case of UDEV. You can use different methods to get this like using udevinfo command, from sysfs, from /var/log/messages. Using udevinfo: for DEV in /dev/sd*; do udevinfo -q env -n $DEV&#8230;]]></description>
				<content:encoded><![CDATA[<p>I wondered when I had to find the <b>USB device</b> name in <b>Linux</b> using <b>shell script</b> (<b>shell command</b>), it was little tricky, specially in case of UDEV.</p>
<p style="text-align:justify;"><a href="http://linuxexplore.files.wordpress.com/2013/12/sushiusb.jpg"><img class="size-large wp-image-673" alt="KONICA MINOLTA DIGITAL CAMERA" src="http://linuxexplore.files.wordpress.com/2013/12/sushiusb.jpg?w=610" width="459" height="384" /></a></p>
<p>You can use different methods to get this like using <b>udevinfo</b> <b>command</b>, from <b>sysfs</b>, from <b>/var/log/messages</b>.</p>
<p><span style="text-decoration:underline;">Using <b>udevinfo</b>:</span></p>
<p><code><strong>for DEV in /dev/sd*; do<br />
udevinfo -q env -n $DEV 2&gt;/dev/null | grep "ID_BUS=usb";<br />
done</strong></code></p>
<p><span style="text-decoration:underline;">Using <b>sysfs</b>:</span></p>
<p>Change this according to your need.</p>
<p><code><strong>find /sys/bus/usb/drivers/usb-storage/[1-9]-[0-1]:1.0/|grep -wo sd[a-z]|head -1</strong></code></p>
<p><span style="text-decoration:underline;">Using <b>/var/log/messages</b>:</span></p>
<p>Grep the usb device in /var/log/messages file, when usb device is connected.</p>
<p>I hope USB device can be detected easily now.</p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2013/01/01/how-to-find-usb-device-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to start shell script writing</title>
		<link>https://blog.linuxexplore.com/2010/10/06/how-to-start-shell-script-writing/</link>
		<comments>https://blog.linuxexplore.com/2010/10/06/how-to-start-shell-script-writing/#comments</comments>
		<pubDate>Tue, 05 Oct 2010 19:33:48 +0000</pubDate>
		<dc:creator><![CDATA[linuxexplore]]></dc:creator>
				<category><![CDATA[Linux Explore How to]]></category>
		<category><![CDATA[/bin/sh]]></category>
		<category><![CDATA[Linux Howto]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[shellscript]]></category>

		<guid isPermaLink="false">http://linuxexplore.wordpress.com/?p=310</guid>
		<description><![CDATA[This is actually, I want to share, how I learned the shell scripting. It may be helpful for beginners. I am writing it step by step so that it will easy to understand: STEP 1: Do your task manually &#38; prepare the steps. If you know the basic Linux commands, it will help you to&#8230;]]></description>
				<content:encoded><![CDATA[<p>This is actually, I want to share, how I learned the shell scripting.  It may be helpful for beginners. I am writing it step by step so that  it will easy to understand:</p>
<p><strong>STEP 1: Do your task manually &amp; prepare the steps.</strong></p>
<p>If you know the basic Linux commands, it will help you to write a  shell script. I am not writing the basic Linux commands here, you can  see check here <a href="http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html">http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html</a></p>
<p><a class="alignleft" href="http://linuxexplore.wordpress.com/how-tos/how-to-start-shell-script-writing" target="_self">View full topic</a></p>
]]></content:encoded>
			<wfw:commentRss>https://blog.linuxexplore.com/2010/10/06/how-to-start-shell-script-writing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
