<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'linux help' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'linux help' posted on the 'LINUX programming' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 23:21:28 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 23:21:28 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>linux help</title>
      <link>http://www.programmersheaven.com/mb/Linux/431245/431245/linux-help/</link>
      <description>Hey, I'm kinda new here and I'm here to ask you for a favor. So I've got a homework on linux programming and I'll need to explain this whole script to my lecturer in tomorrow. Can any of you please explain what does each segment of this script does? Thanks in advance.&lt;br /&gt;
&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
&lt;br /&gt;
echo '1. New entry (Name, Surname, phone number, e-mail):'&lt;br /&gt;
echo '2. Entry search'&lt;br /&gt;
echo '3. List all entries'&lt;br /&gt;
echo '4. Delete an entry'&lt;br /&gt;
echo '5. Edit an entry'&lt;br /&gt;
echo '6. Quit'&lt;br /&gt;
&lt;br /&gt;
choice=0&lt;br /&gt;
while [ $choice -ne 6 ]&lt;br /&gt;
do&lt;br /&gt;
&lt;br /&gt;
read choice&lt;br /&gt;
&lt;br /&gt;
case $choice in&lt;br /&gt;
&lt;br /&gt;
1)&lt;br /&gt;
	echo 'Ener Name, surname, phone number and e-mail, separated by spaces:'&lt;br /&gt;
	read id&lt;br /&gt;
	echo $id &amp;gt;&amp;gt; info.txt&lt;br /&gt;
	;;&lt;br /&gt;
&lt;br /&gt;
2)&lt;br /&gt;
	echo 'Enter id data to search for:'&lt;br /&gt;
	read search&lt;br /&gt;
	grep -n $search info.txt&lt;br /&gt;
	;;&lt;br /&gt;
&lt;br /&gt;
3)&lt;br /&gt;
	echo 'Full entry-list:'&lt;br /&gt;
	cat -n info.txt&lt;br /&gt;
	;;&lt;br /&gt;
&lt;br /&gt;
4)&lt;br /&gt;
	echo 'Specify an entry # for removal:'&lt;br /&gt;
	cat -n info.txt&lt;br /&gt;
	read del&lt;br /&gt;
	sed $del'd' info.txt&amp;gt;temp&lt;br /&gt;
	mv temp info.txt&lt;br /&gt;
	cat -n info.txt&lt;br /&gt;
	;;&lt;br /&gt;
&lt;br /&gt;
5)&lt;br /&gt;
	echo 'Specify an entry # for editing:'&lt;br /&gt;
	cat -n info.txt&lt;br /&gt;
	read edit&lt;br /&gt;
	echo 'Enter new data:'&lt;br /&gt;
	read id&lt;br /&gt;
	sed -i "${edit} s/.*/${id}/" info.txt&lt;br /&gt;
	;;&lt;br /&gt;
&lt;br /&gt;
6)&lt;br /&gt;
	echo 'bye'&lt;br /&gt;
	;;&lt;br /&gt;
&lt;br /&gt;
*)&lt;br /&gt;
	echo 'Wrong selection'&lt;br /&gt;
	;;&lt;br /&gt;
esac&lt;br /&gt;
done&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/Linux/431245/431245/linux-help/</guid>
      <pubDate>Sun, 10 Feb 2013 09:22:51 -0700</pubDate>
      <category>LINUX programming</category>
    </item>
  </channel>
</rss>