Afficher un message
Vieux 28/05/2007, 05h41   #4
Thobias Vakayil
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Question on script - PLEASE !!!

jdoe987@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
  Réponse avec citation
 
Page generated in 0,04367 seconds with 9 queries