Re: Question on script - PLEASE !!!
On May 28, 11:41 am, Thobias Vakayil <Vakayil.Thob...@alcatel.com>
wrote:
> jdoe...@gmail.com wrote:
> >I have a file with multiple columns of info. I would like to separate
> >each column per host - for example
>
> >foobar 1234 abcd 9876
> >fobar2 vvvvv aaaaa 1111
>
> >I want to write a script that will read each colume and write the
> >contents into a file. I have gotten this work if each entry is in a
> >separat file but not when it is in one large file
>
> >cat testfile| while read name field1 field2 field3 field4 ; do echo
> >Field1=$name; echo Field2=$site; echo Field3=$cad; echo Field4=
> >$serial;done
>
> >I tried adding rsh to this and having the contects written locally to
> >each host but it is not working. Any ?
>
> cat testfile | awk '{print $1}
>
> --
> Thobias Vakayil
> Alcatel Development India (ADI)
> PH: 2349961/72/86 EXTN :7018
UUOC
awk '{<awk statements>}' testfile
|