unexpected token error
From: Reuben (reuben_at_presence-systems.com)
Date: 07/20/05
- Next message: Michael Tosch: "Re: unexpected token error"
- Previous message: John L: "Re: use grep to match newline"
- Next in thread: Michael Tosch: "Re: unexpected token error"
- Reply: Michael Tosch: "Re: unexpected token error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 20 Jul 2005 02:57:35 -0700
Why do I get the errors:
./test.sh: line 8: syntax error near unexpected token `$filelist'
./test.sh: line 8: `done < cat $filelist'
when I run this script...
#/!bin/bash
#Set the name of the temporary filelist name
filelist="filelist1.txt"
while read line
do
echo $line | awk ' { print $1 } '
done < cat $filelist
What's the correct way to do this?
Regards
Reuben
reuben@presence-systems.com
- Next message: Michael Tosch: "Re: unexpected token error"
- Previous message: John L: "Re: use grep to match newline"
- Next in thread: Michael Tosch: "Re: unexpected token error"
- Reply: Michael Tosch: "Re: unexpected token error"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|