Script help

Dan Track dan.track at gmail.com
Mon Oct 9 13:04:58 UTC 2006


Hey,

Thanks that worked.

Thanks
Dan

On 10/9/06, Dave Mitchell <davem at iabyn.com> wrote:
> On Mon, Oct 09, 2006 at 12:43:22PM +0100, Dan Track wrote:
> > have a script that does the following:
> >
> > cat /tmp/file | while read rpm
> >
> > what I would like to do is to remove the "|" pipe command but keep the
> > "while read rpm" part while also somehow cat the contents of the file
> > into the "while read rpm" line, how can I do that?
>
>     (
>         while read rpm; do
>             ...
>         done
>     ) < /tmp/file
>
> --
> Fire extinguisher (n) a device for holding open fire doors.
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>




More information about the users mailing list