<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic script from scratch with problems in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184631#M163552</link>
    <description>First I want to thank all for the help, I wa able to get it working regarding the grep of IP. But here is my problem, on further testing and revamping I have put my self in a pickle with out saving th e working copy to go by. But, I have changed what I want done in the script...&lt;BR /&gt;&lt;BR /&gt;I have a IP file &lt;BR /&gt;server@ ~/scripts$ more sw_ip.txt |sort&lt;BR /&gt;142.160.179.200&lt;BR /&gt;123.456.101.20&lt;BR /&gt;123.456.102.20&lt;BR /&gt;123.456.102.21&lt;BR /&gt;123.456.103.20&lt;BR /&gt;123.456.104.20&lt;BR /&gt;123.456.105.20&lt;BR /&gt;123.456.106.20&lt;BR /&gt;123.456.109.20&lt;BR /&gt;123.456.113.20&lt;BR /&gt;&lt;BR /&gt;I need to run a for loop that takes that IP and then greps a file, that was created from an expect script that logs into a machine and changes passwd. The reason I am doing it this way instead of what was in my question before of, awk the created file sort| uniq, then grep for ip. Is that I now for sure these are the IP that I HAVE to have checked. The created script may not have all logged IP's in it for what ever reason. So if it is missing, the grep will still output that IP as not having "changed passwd"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now here is the problem...&lt;BR /&gt;I have attached my script with comments, but is in short words...&lt;BR /&gt;&lt;BR /&gt;for D_IP in $(awk '{print $1}' sw_ip.txt |sort&lt;BR /&gt; do&lt;BR /&gt;    echo $D_IP&lt;BR /&gt;    LOGIN=/tmp/login.txt&lt;BR /&gt;    grep $D_IP $LOGIN  |grep -q "changed passwd"&lt;BR /&gt;    if  [ $?! = 0 ]&lt;BR /&gt;then                                  echo "$D_IP 'grep'"echo $D_IP &amp;gt;&amp;gt;/tmp/host.not&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Does not work.&lt;BR /&gt;The grep returns a value of 1 but for each line in the login.txt AND NOTHING IN MY HOST.NOT FILE!&lt;BR /&gt;&lt;BR /&gt;This is my login.txt parred down..&lt;BR /&gt;&lt;BR /&gt;123.456.101.20 changed passwd.&lt;BR /&gt;123.456.101.20 logged in.&lt;BR /&gt;123.456.102.20 changed passwd.&lt;BR /&gt;123.456.102.20 logged in.&lt;BR /&gt;123.456.102.21 changed passwd.&lt;BR /&gt;123.456.102.21 logged in.&lt;BR /&gt;123.456.103.20 changed passwd.&lt;BR /&gt;123.456.103.20 logged in.&lt;BR /&gt;123.456.104.20 changed passwd.&lt;BR /&gt;123.456.104.20 logged in.&lt;BR /&gt;123.456.105.20 logged in.&lt;BR /&gt;123.456.106.20 logged in.&lt;BR /&gt;123.456.109.20 logged in.&lt;BR /&gt;&lt;BR /&gt;I should only be getting 3 lines retured in the host.not file&lt;BR /&gt;Right now I get nothing!&lt;BR /&gt;&lt;BR /&gt;I really appreciate all the help that was given before, and have filed that for furture use. But, I have been working on this for a day in a half.&lt;BR /&gt;Laura&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 06 Feb 2004 12:17:01 GMT</pubDate>
    <dc:creator>Ratzie</dc:creator>
    <dc:date>2004-02-06T12:17:01Z</dc:date>
    <item>
      <title>script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184631#M163552</link>
      <description>First I want to thank all for the help, I wa able to get it working regarding the grep of IP. But here is my problem, on further testing and revamping I have put my self in a pickle with out saving th e working copy to go by. But, I have changed what I want done in the script...&lt;BR /&gt;&lt;BR /&gt;I have a IP file &lt;BR /&gt;server@ ~/scripts$ more sw_ip.txt |sort&lt;BR /&gt;142.160.179.200&lt;BR /&gt;123.456.101.20&lt;BR /&gt;123.456.102.20&lt;BR /&gt;123.456.102.21&lt;BR /&gt;123.456.103.20&lt;BR /&gt;123.456.104.20&lt;BR /&gt;123.456.105.20&lt;BR /&gt;123.456.106.20&lt;BR /&gt;123.456.109.20&lt;BR /&gt;123.456.113.20&lt;BR /&gt;&lt;BR /&gt;I need to run a for loop that takes that IP and then greps a file, that was created from an expect script that logs into a machine and changes passwd. The reason I am doing it this way instead of what was in my question before of, awk the created file sort| uniq, then grep for ip. Is that I now for sure these are the IP that I HAVE to have checked. The created script may not have all logged IP's in it for what ever reason. So if it is missing, the grep will still output that IP as not having "changed passwd"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now here is the problem...&lt;BR /&gt;I have attached my script with comments, but is in short words...&lt;BR /&gt;&lt;BR /&gt;for D_IP in $(awk '{print $1}' sw_ip.txt |sort&lt;BR /&gt; do&lt;BR /&gt;    echo $D_IP&lt;BR /&gt;    LOGIN=/tmp/login.txt&lt;BR /&gt;    grep $D_IP $LOGIN  |grep -q "changed passwd"&lt;BR /&gt;    if  [ $?! = 0 ]&lt;BR /&gt;then                                  echo "$D_IP 'grep'"echo $D_IP &amp;gt;&amp;gt;/tmp/host.not&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Does not work.&lt;BR /&gt;The grep returns a value of 1 but for each line in the login.txt AND NOTHING IN MY HOST.NOT FILE!&lt;BR /&gt;&lt;BR /&gt;This is my login.txt parred down..&lt;BR /&gt;&lt;BR /&gt;123.456.101.20 changed passwd.&lt;BR /&gt;123.456.101.20 logged in.&lt;BR /&gt;123.456.102.20 changed passwd.&lt;BR /&gt;123.456.102.20 logged in.&lt;BR /&gt;123.456.102.21 changed passwd.&lt;BR /&gt;123.456.102.21 logged in.&lt;BR /&gt;123.456.103.20 changed passwd.&lt;BR /&gt;123.456.103.20 logged in.&lt;BR /&gt;123.456.104.20 changed passwd.&lt;BR /&gt;123.456.104.20 logged in.&lt;BR /&gt;123.456.105.20 logged in.&lt;BR /&gt;123.456.106.20 logged in.&lt;BR /&gt;123.456.109.20 logged in.&lt;BR /&gt;&lt;BR /&gt;I should only be getting 3 lines retured in the host.not file&lt;BR /&gt;Right now I get nothing!&lt;BR /&gt;&lt;BR /&gt;I really appreciate all the help that was given before, and have filed that for furture use. But, I have been working on this for a day in a half.&lt;BR /&gt;Laura&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Feb 2004 12:17:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184631#M163552</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-02-06T12:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184632#M163553</link>
      <description>Laura -- I may have missed the previous postings on this issue.&lt;BR /&gt;&lt;BR /&gt;What three lines are you expecting to get back ?&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Feb 2004 12:22:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184632#M163553</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2004-02-06T12:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184633#M163554</link>
      <description>What I need the script to do is grep the IP for "changed passwd" if it does not find it out put it to the file, host.not.&lt;BR /&gt;So I should get &lt;BR /&gt;123.456.105.20 &lt;BR /&gt;123.456.106.20 &lt;BR /&gt;123.456.109.20 &lt;BR /&gt;&lt;BR /&gt;Or as you see in my login.txt file the bottom 3 IP'S.&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Feb 2004 12:25:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184633#M163554</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-02-06T12:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184634#M163555</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I always use rcs to keep track of my versions. Atleast you can save the script as script.1, script.2 etc., whenver you make changes. &lt;BR /&gt;&lt;BR /&gt;The problem is if [ $?! = 0 ]. This should be $? != 0. First like should have closed ")".&lt;BR /&gt;&lt;BR /&gt;This time instead of correcting your script, I will try to put down what I wrote. Replace IPLISt and LOG to wherever they are.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IPLIST=sw_ip.txt&lt;BR /&gt;LOGIN=login.txt&lt;BR /&gt;RESULT=host.not&lt;BR /&gt;&lt;BR /&gt;for IP in $(cat $IPLIST)&lt;BR /&gt;do&lt;BR /&gt;grep -q -x "$IP changed passwd." $LOGIN&lt;BR /&gt;&lt;BR /&gt;if [ $? != 0 ]&lt;BR /&gt;then&lt;BR /&gt;echo $IP &amp;gt;&amp;gt; $RESULT&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 06 Feb 2004 12:31:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184634#M163555</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-06T12:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184635#M163556</link>
      <description>Thank you! I did not have a space!&lt;BR /&gt;[ $? [space] != 0 ]&lt;BR /&gt;&lt;BR /&gt;But, I am still haveing a problem, it still out puts the whole list.&lt;BR /&gt;I even checked for hidden characters in my $LOGIN_ENTRY_FILE_4 and in my $IPLIST, nothing but the return character at the end.&lt;BR /&gt;Even if I grep without the -x still same problem!&lt;BR /&gt;&lt;BR /&gt;This is my $LOGIN_ENTRY_FILE_4&lt;BR /&gt;123.456.101.20, logged in.&lt;BR /&gt;123.456.101.20, changed passwd.&lt;BR /&gt;123.456.102.20, logged in.&lt;BR /&gt;123.456.102.20, changed passwd.&lt;BR /&gt;123.456.102.21, logged in.&lt;BR /&gt;123.456.102.21, changed passwd.&lt;BR /&gt;123.456.103.20, logged in.&lt;BR /&gt;123.456.104.20, logged in.&lt;BR /&gt;123.456.104.20, changed passwd.&lt;BR /&gt;123.456.105.20, logged in.&lt;BR /&gt;123.456.105.20, changed passwd.&lt;BR /&gt;&lt;BR /&gt;My host.not file still outputs all of the IPs&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;rm /tmp/host.not&lt;BR /&gt;IPLIST=$SCRIPTS_DIR/sw_ip.txt&lt;BR /&gt;        for IP in `cat $IPLIST`&lt;BR /&gt;        do&lt;BR /&gt;     echo $IP&lt;BR /&gt;     grep -q -x  "$IP, changed passwd." $LOGIN_ENTRY_FILE_4&lt;BR /&gt;  if  [ $? != 0 ]&lt;BR /&gt;  then&lt;BR /&gt;  echo $IP &amp;gt;&amp;gt;/tmp/host.not&lt;BR /&gt;  fi&lt;BR /&gt;  done&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Feb 2004 13:24:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184635#M163556</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-02-06T13:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184636#M163557</link>
      <description>Okay .. after you have your sw_ip.txt and login.txt files created, you can run this:&lt;BR /&gt;&lt;BR /&gt;touch .use1 .use2&lt;BR /&gt;rm .use1 .use2&lt;BR /&gt;awk '{print "grep ",$1,"login.txt &amp;gt;&amp;gt; .use2"}' &amp;lt; sw_ip.txt &amp;gt; .use1&lt;BR /&gt;chmod 755 .use1&lt;BR /&gt;./.use1&lt;BR /&gt;awk 'BEGIN{useip=0;} /changed passwd/ {useip=$1;next} /logged in/ {if (useip!=$1&lt;BR /&gt;) {print $0};useip=0;}' .use2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Explanation:&lt;BR /&gt;&lt;BR /&gt;touch touchs the files we'll use and then rms them on the next line (so we can use &amp;gt;&amp;gt; without picking up old data).&lt;BR /&gt;&lt;BR /&gt;first awk creates the greps instead of doing it inline.&lt;BR /&gt;chmod makes the script executable&lt;BR /&gt;./.use1 creates ./.use2&lt;BR /&gt;then the last awk script sets the useip value when it finds a "changed passwd" line.&lt;BR /&gt;&lt;BR /&gt;If it finds a logged in line that doesnt have a matching "changed passwd" line then it prints it.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Feb 2004 13:36:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184636#M163557</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2004-02-06T13:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184637#M163558</link>
      <description>Hmmm.. you changed your input files. The first example lines didn't have a ',' in them but the recent one showed , again. Here is what I have and it's working for me. I modified grepping to incorporate , and to ignore any number of blank spaces,tabs between "," and the text.&lt;BR /&gt;&lt;BR /&gt;$cat sw_ip.txt&lt;BR /&gt;142.160.179.200&lt;BR /&gt;123.456.101.20&lt;BR /&gt;123.456.102.20&lt;BR /&gt;123.456.102.21&lt;BR /&gt;123.456.103.20&lt;BR /&gt;123.456.104.20&lt;BR /&gt;123.456.105.20&lt;BR /&gt;123.456.106.20&lt;BR /&gt;123.456.109.20&lt;BR /&gt;123.456.113.20&lt;BR /&gt;123.456.104.2&lt;BR /&gt;$cat login_txt&lt;BR /&gt;123.456.101.20, logged in.&lt;BR /&gt;123.456.101.20, changed passwd.&lt;BR /&gt;123.456.102.20, logged in.&lt;BR /&gt;123.456.102.20, changed passwd.&lt;BR /&gt;123.456.102.21, logged in.&lt;BR /&gt;123.456.102.21, changed passwd.&lt;BR /&gt;123.456.103.20, logged in.&lt;BR /&gt;123.456.104.20, logged in.&lt;BR /&gt;123.456.104.20, changed passwd.&lt;BR /&gt;123.456.105.20, logged in.&lt;BR /&gt;123.456.105.20, changed passwd.&lt;BR /&gt;$cat scr&lt;BR /&gt;IPLIST=sw_ip.txt&lt;BR /&gt;LOGIN=login.txt&lt;BR /&gt;&lt;BR /&gt;for IP in $(cat $IPLIST)&lt;BR /&gt;do&lt;BR /&gt;grep "${IP}," $LOGIN |grep -q "changed passwd."&lt;BR /&gt;&lt;BR /&gt;if [ $? != 0 ]&lt;BR /&gt;then&lt;BR /&gt;echo $IP &amp;gt;&amp;gt; host.not&lt;BR /&gt;fi&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;$./scr&lt;BR /&gt;$cat host.not&lt;BR /&gt;142.160.179.200&lt;BR /&gt;123.456.103.20&lt;BR /&gt;123.456.106.20&lt;BR /&gt;123.456.109.20&lt;BR /&gt;123.456.113.20&lt;BR /&gt;123.456.104.2&lt;BR /&gt;&lt;BR /&gt;Also, unless we see the actual files, it's difficult to carve a 100% solution for you. Please attach them instead of posting them.&lt;BR /&gt;&lt;BR /&gt;-Sri&lt;BR /&gt;PS: Please do not assign points until your problem is completely solved atleast to me. Thanks.</description>
      <pubDate>Fri, 06 Feb 2004 13:47:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184637#M163558</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-06T13:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184638#M163559</link>
      <description>If I put this before my grep...&lt;BR /&gt;&lt;BR /&gt; echo "${IP}, changed passwd."&lt;BR /&gt;&lt;BR /&gt;I get &lt;BR /&gt;, changed passwd.&lt;BR /&gt;&lt;BR /&gt;I do not get the IP, so I am having problems with that variable!</description>
      <pubDate>Fri, 06 Feb 2004 13:50:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184638#M163559</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-02-06T13:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184639#M163560</link>
      <description>What if you simply run&lt;BR /&gt;&lt;BR /&gt;IPLIST=$SCRIPTS_DIR/sw_ip.txt&lt;BR /&gt;&lt;BR /&gt;for IP in $(cat $IPLIST)&lt;BR /&gt;do&lt;BR /&gt;echo ${IP}&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Did you have your SCRIPTS_DIR defined properly?.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 06 Feb 2004 13:53:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184639#M163560</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-02-06T13:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184640#M163561</link>
      <description>I put an echo $IP before it...&lt;BR /&gt;rm /tmp/host.not&lt;BR /&gt;IPLIST=$SCRIPTS_DIR/sw_ip.txt&lt;BR /&gt;        for IP in `cat $IPLIST`&lt;BR /&gt;        do&lt;BR /&gt;                echo $IP&lt;BR /&gt;                echo "${IP}, changed passwd."&lt;BR /&gt;                grep -q -x  "$IP, changed passwd." $LOGIN_ENTRY_FILE_4&lt;BR /&gt;                                if  [ $? != 0 ]&lt;BR /&gt;                                then&lt;BR /&gt;                                    echo $IP &amp;gt;&amp;gt;/tmp/host.not&lt;BR /&gt;                                fi&lt;BR /&gt;                done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This is my output...&lt;BR /&gt;123.456.101.20&lt;BR /&gt;, changed passwd.&lt;BR /&gt;123.456.102.20&lt;BR /&gt;, changed passwd.&lt;BR /&gt;123.456.102.21&lt;BR /&gt;, changed passwd.&lt;BR /&gt;123.456.103.20&lt;BR /&gt;, changed passwd.&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Feb 2004 14:30:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184640#M163561</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-02-06T14:30:50Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184641#M163562</link>
      <description>simple script&lt;BR /&gt;IPLIST=/the/correct/path/sw_ip.txt&lt;BR /&gt;for IP in $(cat $IPLIST)&lt;BR /&gt;do&lt;BR /&gt;        echo $IP&lt;BR /&gt;        echo $IP&lt;BR /&gt;        echo "$IP"&lt;BR /&gt;        echo "$IP, changed passwd."&lt;BR /&gt;        echo "$IP changed passwd."&lt;BR /&gt;        echo $IP", changed passwd."&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Output (parred down)&lt;BR /&gt;&lt;BR /&gt;123.456.80.48&lt;BR /&gt;123.456.80.48&lt;BR /&gt;123.456.80.48&lt;BR /&gt;, changed passwd.&lt;BR /&gt; changed passwd.&lt;BR /&gt;, changed passwd.&lt;BR /&gt;123.456.35.48&lt;BR /&gt;123.456.35.48&lt;BR /&gt;123.456.35.48&lt;BR /&gt;, changed passwd.&lt;BR /&gt; changed passwd.&lt;BR /&gt;, changed passwd.&lt;BR /&gt;123.456.20.50&lt;BR /&gt;123.456.20.50&lt;BR /&gt;123.456.20.50&lt;BR /&gt;, changed passwd.&lt;BR /&gt; changed passwd.&lt;BR /&gt;, changed passwd.&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Feb 2004 14:54:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184641#M163562</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-02-06T14:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184642#M163563</link>
      <description>Can some one explain this...&lt;BR /&gt;IPLIST=/the/correct/path/sw_ip.txt&lt;BR /&gt;for IP in $(cat $IPLIST)&lt;BR /&gt;do&lt;BR /&gt;        echo $IP&lt;BR /&gt;        echo $IP&lt;BR /&gt;        echo "$IP"&lt;BR /&gt;        echo $IP ","&lt;BR /&gt;        echo "$IP ,"&lt;BR /&gt;        echo "$IP, changed passwd."&lt;BR /&gt;        echo "$IP changed passwd."&lt;BR /&gt;        echo $IP", changed passwd."&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Output:&lt;BR /&gt;123.456.20.50&lt;BR /&gt;123.456.20.50&lt;BR /&gt;123.456.20.50&lt;BR /&gt; ,3.17.20.50&lt;BR /&gt; ,3.17.20.50&lt;BR /&gt;, changed passwd.&lt;BR /&gt; changed passwd.&lt;BR /&gt;, changed passwd.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Feb 2004 15:01:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184642#M163563</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-02-06T15:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184643#M163564</link>
      <description>Nope.... &lt;BR /&gt;&lt;BR /&gt;The last thing you did, gives me this:&lt;BR /&gt;&lt;BR /&gt;123.456.101.20&lt;BR /&gt;123.456.101.20&lt;BR /&gt;123.456.101.20&lt;BR /&gt;123.456.101.20 ,&lt;BR /&gt;123.456.101.20 ,&lt;BR /&gt;123.456.101.20, changed passwd.&lt;BR /&gt;123.456.101.20 changed passwd.&lt;BR /&gt;123.456.101.20, changed passwd.&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Feb 2004 15:37:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184643#M163564</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2004-02-06T15:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184644#M163565</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;there is one more problem:&lt;BR /&gt;$? != 0&lt;BR /&gt;&lt;BR /&gt;two errors, $? is numeric and grep returns 0 when it finds something so it must be:&lt;BR /&gt;$? -eq 0&lt;BR /&gt;&lt;BR /&gt;Michael&lt;BR /&gt;</description>
      <pubDate>Fri, 06 Feb 2004 17:30:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184644#M163565</guid>
      <dc:creator>Michael Schulte zur Sur</dc:creator>
      <dc:date>2004-02-06T17:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: script from scratch with problems</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184645#M163566</link>
      <description>Just to give everyone a heads up on this one, for some reason, the file needed to be dos2ux, it did not show any wonky charecters when I vi'd it but when I did that it worked!&lt;BR /&gt;&lt;BR /&gt;Thanks everyone for there help!</description>
      <pubDate>Sat, 07 Feb 2004 19:08:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/script-from-scratch-with-problems/m-p/3184645#M163566</guid>
      <dc:creator>Ratzie</dc:creator>
      <dc:date>2004-02-07T19:08:54Z</dc:date>
    </item>
  </channel>
</rss>

