<?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 Re: Help with Shell Script in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-shell-script/m-p/2853521#M94200</link>
    <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;You could use something like this as a basis:&lt;BR /&gt;&lt;BR /&gt;for i in `cat file`&lt;BR /&gt;do&lt;BR /&gt;echo $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;In this example the "echo $i" line would be replaced by whatever command(s) you wanted to run.&lt;BR /&gt;&lt;BR /&gt;I hope this helps a little,&lt;BR /&gt;&lt;BR /&gt;John</description>
    <pubDate>Wed, 27 Nov 2002 14:44:44 GMT</pubDate>
    <dc:creator>John Strang</dc:creator>
    <dc:date>2002-11-27T14:44:44Z</dc:date>
    <item>
      <title>Help with Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-shell-script/m-p/2853520#M94199</link>
      <description>Hi All,&lt;BR /&gt;&lt;BR /&gt;I need help writing a script that will do the following:&lt;BR /&gt;&lt;BR /&gt;1.  Read a text file that contains logical printer names.&lt;BR /&gt;&lt;BR /&gt;2. Use each printer name pulled from the file (one printer name per line) until EOF on a series of commands.&lt;BR /&gt;&lt;BR /&gt;Anys suggestions?&lt;BR /&gt;&lt;BR /&gt;James</description>
      <pubDate>Wed, 27 Nov 2002 14:38:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-shell-script/m-p/2853520#M94199</guid>
      <dc:creator>James M. Easterling</dc:creator>
      <dc:date>2002-11-27T14:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-shell-script/m-p/2853521#M94200</link>
      <description>Hi James,&lt;BR /&gt;&lt;BR /&gt;You could use something like this as a basis:&lt;BR /&gt;&lt;BR /&gt;for i in `cat file`&lt;BR /&gt;do&lt;BR /&gt;echo $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;In this example the "echo $i" line would be replaced by whatever command(s) you wanted to run.&lt;BR /&gt;&lt;BR /&gt;I hope this helps a little,&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Wed, 27 Nov 2002 14:44:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-shell-script/m-p/2853521#M94200</guid>
      <dc:creator>John Strang</dc:creator>
      <dc:date>2002-11-27T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-shell-script/m-p/2853522#M94201</link>
      <description>I would use something like this...&lt;BR /&gt;&lt;BR /&gt;while read printer; do&lt;BR /&gt;# do the magic, e.g.:&lt;BR /&gt;echo This is $printer&lt;BR /&gt;done &amp;lt; file&lt;BR /&gt;&lt;BR /&gt;Best regards...&lt;BR /&gt; Dietmar.</description>
      <pubDate>Wed, 27 Nov 2002 14:45:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-shell-script/m-p/2853522#M94201</guid>
      <dc:creator>Dietmar Konermann</dc:creator>
      <dc:date>2002-11-27T14:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-shell-script/m-p/2853523#M94202</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;Here's a script along those lines - I use it to add all the printers to a new machine but you can adapt it.&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 27 Nov 2002 14:46:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-shell-script/m-p/2853523#M94202</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-11-27T14:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Shell Script</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/help-with-shell-script/m-p/2853524#M94203</link>
      <description>James&lt;BR /&gt;&lt;BR /&gt;And here's the printer list&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Wed, 27 Nov 2002 14:47:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/help-with-shell-script/m-p/2853524#M94203</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2002-11-27T14:47:16Z</dc:date>
    </item>
  </channel>
</rss>

