AdamCoombs
Technical User
Hello,
Im trying to run this script,
#!/bin/ksh
OUTPUTFILE=`cat names.adam1`
for lines in $OUTPUTFILE
do
echo $lines
grep $lines bla bla bla
done
The OUTPUTFILE is a list of names.
Adam Coombs
Dave Jones
Gary Doe
that sort of thing..
but the output of $lines is supposed to be the entire line of the outputfile, ie: "Adam Coombs" but its comming out
Adam
Coombs
Dave Jones
Gary
Doe
how do i get it to do
Adam Coombs
Dave Jones
Gary Doe
????????
I have tried all the "`' with no joy!!!
many thanks
Adam
Im trying to run this script,
#!/bin/ksh
OUTPUTFILE=`cat names.adam1`
for lines in $OUTPUTFILE
do
echo $lines
grep $lines bla bla bla
done
The OUTPUTFILE is a list of names.
Adam Coombs
Dave Jones
Gary Doe
that sort of thing..
but the output of $lines is supposed to be the entire line of the outputfile, ie: "Adam Coombs" but its comming out
Adam
Coombs
Dave Jones
Gary
Doe
how do i get it to do
Adam Coombs
Dave Jones
Gary Doe
????????
I have tried all the "`' with no joy!!!
many thanks
Adam