home bbs files messages ]

Just a sample of the Echomail archive

<< oldest | < older | list | newer > | newest >> ]

 Message 10760 
 Rick Smith to All 
 bash script and grep 
 01 Feb 23 07:44:02 
 
MSGID: 1:105/10 63da89be
CHRS: UTF-8 2
TZUTC: -0800
Greetings All!

I am trying to use a modified bash script from a fellow sysop to import msg
areas into maximus bbs, I changed the particulars to my setup and left the
rest alone.  I get a grep error, I was hoping someone here could spot the
error as grep is not my strong suit.

here is the error running the script.

Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.

(yes I typed help, did not help me)

here are the two areas in the script calling grep

cat /fido/etc/areas_fidonet | grep EchoArea | grep 1:105/81 |sort> $TMPFILE
while read -r line
do
        TAGLONG=`echo $line|awk {'print $2'}`
        TAGSHORT=`echo $line|awk {'print $2'}|sed s/FIDO_//`
        FILE=`echo $line|awk {'print $3'}`
        DESC=`cat backbone.na | grep $TAGLONG | awk '{$1=""; print $0}'|sed
's/\r$//'`



----
Regards,


 Rick Smith (Nitro)

... BBSing is terminal
--- GoldED+/LNX 1.1.5-b20220504
 * Origin:  ----> Abacus BBS! --->>>>bbs.abon.us:2323  (1:105/10)
SEEN-BY: 1/123 15/0 90/1 105/7 10 11 44 81 85 420 500 106/201 114/709
SEEN-BY: 120/340 123/131 129/305 153/7715 218/700 226/30 227/114 229/110
SEEN-BY: 229/111 112 113 114 206 307 317 400 424 426 428 470 550 616
SEEN-BY: 229/664 700 266/512 282/1038 317/3 320/219 322/757 342/200
SEEN-BY: 396/45 460/58 633/280 712/848
PATH: 105/10 81 229/426


<< oldest | < older | list | newer > | newest >> ]

(c) 1994,  bbs@darkrealms.ca