Subj : Re: bash script and grep To : Rick Smith From : Wilfred van Velzen Date : Wed Feb 01 2023 17:05:23 Hi Rick, On 2023-02-01 07:44:02, you wrote to All: RS> here is the error running the script. RS> Usage: grep [OPTION]... PATTERNS [FILE]... RS> Try 'grep --help' for more information. RS> (yes I typed help, did not help me) RS> here are the two areas in the script calling grep RS> cat /fido/etc/areas_fidonet | grep EchoArea | grep 1:105/81 |sort> $TMPFILE RS> while read -r line RS> do RS> TAGLONG=`echo $line|awk {'print $2'}` RS> TAGSHORT=`echo $line|awk {'print $2'}|sed s/FIDO_//` RS> FILE=`echo $line|awk {'print $3'}` RS> DESC=`cat backbone.na | grep $TAGLONG | awk '{$1=""; print $0}'|sed RS> 's/\r$//'` I would place $TAGLONG inside double quotes here, just incase it's an empty string. Bye, Wilfred. --- FMail-lnx64 2.1.5.2-B20230114 * Origin: FMail development HQ (2:280/464) .