<?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: script in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/script/m-p/4732721#M43196</link>
    <description>#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;(&lt;BR /&gt;    while read line ; do&lt;BR /&gt;        echo "$line"&lt;BR /&gt;    done&lt;BR /&gt;) &amp;lt; em.dat&lt;BR /&gt;&lt;BR /&gt;Worked for me.&lt;BR /&gt;Thanks</description>
    <pubDate>Mon, 03 Jan 2011 16:56:25 GMT</pubDate>
    <dc:creator>Piotr Kirklewski</dc:creator>
    <dc:date>2011-01-03T16:56:25Z</dc:date>
    <item>
      <title>script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script/m-p/4732719#M43194</link>
      <description>Hi there&lt;BR /&gt;I have  a file with a bunch of e-mail addresses in it.&lt;BR /&gt;How do I display (or perform any other task) each and every e-mail address from this file ? &lt;BR /&gt;&lt;BR /&gt;EMAIL=`cat eaccounts`&lt;BR /&gt;&lt;BR /&gt;for ARG in "$EMAIL"&lt;BR /&gt;     do&lt;BR /&gt;            echo $ARG&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Unfortunately the above method will print a list of e-mail addresses instead of one per time. Which proves that there is only one ARG which looks something lie this: user1@dom.com user2@dom.com user3@dom.com etc.&lt;BR /&gt;How do I make the script know there are multiple addresses in this file please ? &lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Peter</description>
      <pubDate>Mon, 03 Jan 2011 05:11:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script/m-p/4732719#M43194</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2011-01-03T05:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script/m-p/4732720#M43195</link>
      <description>&lt;!--!*#--&gt;&amp;gt; I have a file [...]&lt;BR /&gt;&lt;BR /&gt;On what?&lt;BR /&gt;&lt;BR /&gt;      uname -a&lt;BR /&gt;&lt;BR /&gt;It's nice that at least one of us can see&lt;BR /&gt;what's in that file.  It might be nicer if&lt;BR /&gt;_more_ than one of us could see what's in&lt;BR /&gt;that file.&lt;BR /&gt;&lt;BR /&gt;&amp;gt; for ARG in "$EMAIL"&lt;BR /&gt;&lt;BR /&gt;Did you try anything like, say:&lt;BR /&gt;      for ARG in $EMAIL&lt;BR /&gt;?&lt;BR /&gt;&lt;BR /&gt;If the items in the file are arranged one per&lt;BR /&gt;line, like, say:&lt;BR /&gt;&lt;BR /&gt;$ cat em.dat&lt;BR /&gt;line 1&lt;BR /&gt;line 2&lt;BR /&gt;line 3&lt;BR /&gt;&lt;BR /&gt;then a while-read loop could be used:&lt;BR /&gt;&lt;BR /&gt;$ cat em.sh&lt;BR /&gt;#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;(&lt;BR /&gt;    while read line ; do&lt;BR /&gt;        echo "$line"&lt;BR /&gt;    done&lt;BR /&gt;) &amp;lt; em.dat&lt;BR /&gt;&lt;BR /&gt;$ ./em.sh&lt;BR /&gt;line 1&lt;BR /&gt;line 2&lt;BR /&gt;line 3&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jan 2011 05:47:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script/m-p/4732720#M43195</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-01-03T05:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script/m-p/4732721#M43196</link>
      <description>#!/bin/sh&lt;BR /&gt;&lt;BR /&gt;(&lt;BR /&gt;    while read line ; do&lt;BR /&gt;        echo "$line"&lt;BR /&gt;    done&lt;BR /&gt;) &amp;lt; em.dat&lt;BR /&gt;&lt;BR /&gt;Worked for me.&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 03 Jan 2011 16:56:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script/m-p/4732721#M43196</guid>
      <dc:creator>Piotr Kirklewski</dc:creator>
      <dc:date>2011-01-03T16:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: script</title>
      <link>https://community.hpe.com/t5/operating-system-linux/script/m-p/4732722#M43197</link>
      <description>&lt;!--!*#--&gt;&amp;gt;while read line; do ... Worked for me.&lt;BR /&gt;&lt;BR /&gt;And so would Steven's first suggestion of removing those quotes:&lt;BR /&gt;for ARG in $(&amp;lt; eaccounts); do&lt;BR /&gt;   echo $ARG&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 03 Jan 2011 20:15:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/script/m-p/4732722#M43197</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-01-03T20:15:19Z</dc:date>
    </item>
  </channel>
</rss>

