<rss version="2.0">
<channel>
<title>comp.unix.shell :: Using and programming the Unix shell.</title>
<link>http://www.nnseek.com/e/comp.unix.shell/</link>
<description>Posts for comp.unix.shell</description>
<lastBuildDate>Tue, 19 Aug 2008 17:29:56 PDT</lastBuildDate>
  <image>
    <title>http://www.nnseek.com/</title>
    <link>http://www.nnseek.com/</link>
    <url>http://www.nnseek.com/img/64.png</url>
    <width>64</width>
    <height>64</height>
    <description>NNSeek</description>
  </image>
<item>
	<title><![CDATA[incrementing file names by 1]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.shell/incrementing_file_names_by_1_98058644t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.shell/incrementing_file_names_by_1_98058644t.html</link>
	<description><![CDATA[<br>I have a folder with files<br>track 02.ogg<br>track 03.ogg<br><br>.<br>.<br>.<br>.<br><br>track 48.ogg<br><br>How could I use sed to change the file names to:<br><br>track 01.ogg<br>track 02.ogg<br><br>.<br>.<br>.<br>.<br><br>track 47.ogg<br><br>Thanks.<br><br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.shell/">comp.unix.shell</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/incrementing_file_names_by_1_98058644t.html"><b>3</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/incrementing_file_names_by_1_98058644m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 19 Aug 2008 17:29:56 PDT</pubDate>
</item>
<item>
	<title><![CDATA[perl lookahead re]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.shell/perl_lookahead_re_98055572t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.shell/perl_lookahead_re_98055572t.html</link>
	<description><![CDATA[The goal is to put "TOP/" if a space is not followed by / or \.<br><br>The first line has a space between world and \\,<br>the second line has two spaces.<br><br>$ echo " hello /world \\" | perl -ple 's/\s+(?!\/|\\)/ TOP\//g'<br> TOP/hello /world \<br><br>$ echo " hello /world  \\" | perl -ple 's/\s+(?!\/|\\)/ TOP\//g'<br> TOP/hello /world TOP/ \<br><br>I expect the two outputs would be the same, bit they are not.<br>Any idea?<br>TIA<br><br>James<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.shell/">comp.unix.shell</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/perl_lookahead_re_98055572t.html"><b>1</b> Comment</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/perl_lookahead_re_98055572m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 19 Aug 2008 16:13:14 PDT</pubDate>
</item>
<item>
	<title><![CDATA[Exiting from subshells (e.g. functions)]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.shell/exiting_from_subshells_e_g_functions_98001044t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.shell/exiting_from_subshells_e_g_functions_98001044t.html</link>
	<description><![CDATA[I want to exit completely from my script upon error.  The problem is<br>that when I have functions, and I do something like<br><br>exit 11<br><br>It only exits from the function.  I've read through the posts, and<br>there are two solutions that I think might work for me.  The first<br>solution is to execute the function within the first shell, e.g.<br><br>exec function<br><br>I tried this solution and it doesn't appear to be working for me.<br>Since there are so many functions in the script I am trying to modify<br>and they seem to call each other, I am not sure if I missed one.<br><br>The other solution I have found is to do<br><br>kill $$<br><br>I don't think that this is a very clean way of exiting from a script,<br>and it also won't assign the exit code that I want.<br><br>Does anyone else have any other solutions?  Thanks, Margaret<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.shell/">comp.unix.shell</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/exiting_from_subshells_e_g_functions_98001044t.html"><b>5</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/exiting_from_subshells_e_g_functions_98001044m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 19 Aug 2008 08:47:37 PDT</pubDate>
</item>
<item>
	<title><![CDATA[tsch script]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.shell/tsch_script_97998740t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.shell/tsch_script_97998740t.html</link>
	<description><![CDATA[hi~ all ~ there is a script like this :<br>       set FilePrefix=${HdfFile:r}<br> ${BinDir}/CloudStatsModis   ${InputDirectory}   ${FilePrefix}.class<br>${InputDirectory}/stats<br><br><br>CloudStatsModis is an executable file when I tried to run it .the file<br>prefix included the path of the file.  And I just want to include the<br>file name not the path. How can I do that ?<br>                                           Thank you<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.shell/">comp.unix.shell</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/tsch_script_97998740t.html"><b>2</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/tsch_script_97998740m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 19 Aug 2008 08:18:01 PDT</pubDate>
</item>
<item>
	<title><![CDATA[How to grep for multiple processes from a text file]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.shell/how_to_grep_for_multiple_processes_from_a_text_fil_97947284t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.shell/how_to_grep_for_multiple_processes_from_a_text_fil_97947284t.html</link>
	<description><![CDATA[Hi all,<br>I wonder if it is possible to do the above. I have a list of process <br>that I need to see if it is running so i saved them in a text file. Is <br>it possible I can do a ps -ef on the processes in the text file and it <br>will return me the processes that are in the text file but is not <br>running in the system? Thanks in advance.<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.shell/">comp.unix.shell</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/how_to_grep_for_multiple_processes_from_a_text_fil_97947284t.html"><b>4</b> Comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/how_to_grep_for_multiple_processes_from_a_text_fil_97947284m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Tue, 19 Aug 2008 00:32:34 PDT</pubDate>
</item>
<item>
	<title><![CDATA[fun with indian sex moves downloadfree]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.shell/fun_with_indian_sex_moves_downloadfree_97932436t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.shell/fun_with_indian_sex_moves_downloadfree_97932436t.html</link>
	<description><![CDATA[fun with indian sex moves downloadfree<br><br><br><br><br><a href="http://kumaripud.blogspot.com" rel="nofollow" class="url" target="_blank">http://kumaripud.blogspot.com</a>/<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.shell/">comp.unix.shell</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/fun_with_indian_sex_moves_downloadfree_97932436t.html">no comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/fun_with_indian_sex_moves_downloadfree_97932436m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Mon, 18 Aug 2008 19:33:04 PDT</pubDate>
</item>
<item>
	<title><![CDATA[How to be aware of the accomplishment of a executable code called by  my shell?]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.shell/how_to_be_aware_of_the_accomplishment_of_a_executable_97906836t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.shell/how_to_be_aware_of_the_accomplishment_of_a_executable_97906836t.html</link>
	<description><![CDATA[Dear all:<br>  I have a task like that:<br>  Given an .exe(C), a .jar(J), and a textfile T0, my shell should<br>include following steps<br>1.C loadin T0, then output result R1;<br>2.J loadin R1, then output a updated textfile T1;<br>3.C loadin T1, then output result R2;<br>4.J loadin R2, then output a updated textfile T2;<br>...<br>...<br>After hundreds of turns, it ends based on a criteria.<br><br>  I am not sure know how to decide whether the above step has<br>completed for each incoming step.<br>Would you please show a framework of code in normal unix environment.<br><br>   Thank you for your help!:)<br><br>Sincerely yours,<br>Jie<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.shell/">comp.unix.shell</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/how_to_be_aware_of_the_accomplishment_of_a_executable_97906836t.html"><b>1</b> Comment</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/how_to_be_aware_of_the_accomplishment_of_a_executable_97906836m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Mon, 18 Aug 2008 13:15:33 PDT</pubDate>
</item>
<item>
	<title><![CDATA[How to decide the finish of another process]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.shell/how_to_decide_the_finish_of_another_process_97902740t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.shell/how_to_decide_the_finish_of_another_process_97902740t.html</link>
	<description><![CDATA[Dear all:<br>    I have a task like that:<br>    Given an .exe(C), a .jar(J), and a textfile T0, my shell should<br>include following steps<br>1.C loadin T0, then output result R1;<br>2.J loadin R1, then output a updated textfile T1;<br>3.C loadin T1, then output result R2;<br>4.J loadin R2, then output a updated textfile T2;<br>...<br>...<br>After hundreds of turns, it ends based on a criteria.<br><br>    I don;t know how to decide whether the above step has completed in<br>our HPCC environmet?<br>If it is difficult to do it in HPCC, please show a framework of code<br>in normal unix environment, since I am still not very familiar with<br>Shell Programming.<br><br>     Thank you for your help!:)<br><br>Sincerely yours,<br>Jie<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.shell/">comp.unix.shell</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/how_to_decide_the_finish_of_another_process_97902740t.html"><b>1</b> Comment</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/how_to_decide_the_finish_of_another_process_97902740m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Mon, 18 Aug 2008 13:04:25 PDT</pubDate>
</item>
<item>
	<title><![CDATA[Find out hostname]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.shell/find_out_hostname_97869460t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.shell/find_out_hostname_97869460t.html</link>
	<description><![CDATA[How can we findout the hostname which we can ping from UNIX box?<br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.shell/">comp.unix.shell</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/find_out_hostname_97869460t.html"><b>1</b> Comment</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/find_out_hostname_97869460m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Mon, 18 Aug 2008 07:45:45 PDT</pubDate>
</item>
<item>
	<title><![CDATA[Free Mp3 songs(mp3songshome.com)]]></title>
	<guid>http://www.nnseek.com/e/comp.unix.shell/free_mp3_songs_mp3songshome_com_97864340t.html</guid>
	<link>http://www.nnseek.com/e/comp.unix.shell/free_mp3_songs_mp3songshome_com_97864340t.html</link>
	<description><![CDATA[Download Free Mp3 indian ,English, Pakistani and spnaish songs. Listen<br>online and download for free. <a href="http://www.mp3songshome.com" rel="nofollow" class="url" target="_blank">http://www.mp3songshome.com</a><br>
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30">&nbsp;</td>
        <td>Posted In: <a href="http://www.nnseek.com/e/comp.unix.shell/">comp.unix.shell</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/free_mp3_songs_mp3songshome_com_97864340t.html">no comments</a></td>
        <td width="20">&nbsp;</td>
        <td><a href="http://www.nnseek.com/e/comp.unix.shell/free_mp3_songs_mp3songshome_com_97864340m.html">Reply</a></td>
      </tr></table><br>]]></description>
	<pubDate>Mon, 18 Aug 2008 06:46:36 PDT</pubDate>
</item>
</channel>
</rss>