Subj : bash script and grep To : Rick Smith From : Daniel Path Date : Thu Feb 02 2023 14:39:49 Hello Rick, 01 Feb 23 07:44, you wrote to All: RS> Greetings All! RS> I am trying to use a modified bash script from a fellow sysop to RS> import msg areas into maximus bbs, I changed the particulars to my RS> setup and left the rest alone. I get a grep error, I was hoping RS> someone here could spot the error as grep is not my strong suit. 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> RS> $TMPFILE while read -r line 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 RS> $0}'|sed 's/\r$//'` haha. thats my script :) try: grep "1:105/81" or set it as a variable as in the original script ;) Regards, -- dp -=>> telnet://bbs.roonsbbs.hu:1212 <<=- .... 3:38pm up 37 days, 17:43:33, load: 77 processes, 275 threads. --- GoldED/2 1.1.4.7+EMX * Origin: Roon's BBS - Budapest, HUNGARY (2:371/52) .