home bbs files messages ]

Just a sample of the Echomail archive

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

 Message 10761 
 Wilfred van Velzen to Rick Smith 
 Re: bash script and grep 
 01 Feb 23 17:05:23 
 
TID: FMail-lnx64 2.1.5.2-B20230114
RFC-X-No-Archive: Yes
TZUTC: 0100
CHRS: UTF-8 2
PID: GED+LNX 1.1.5-b20161221
MSGID: 2:280/464 63da8e1b
REPLY: 1:105/10 63da89be
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)
SEEN-BY: 1/19 123 15/0 16/0 19/37 90/1 105/81 106/201 114/709 120/340
SEEN-BY: 123/130 131 124/5016 129/305 142/104 153/757 7715 203/0 218/700
SEEN-BY: 221/0 226/30 227/114 229/110 111 112 113 114 206 307 317
SEEN-BY: 229/400 424 426 428 470 550 616 664 700 240/420 1120 5411
SEEN-BY: 240/5832 5853 266/512 280/464 282/1038 292/8125 301/1 317/3
SEEN-BY: 320/119 219 319 2119 322/0 757 341/66 234 342/200 396/45
SEEN-BY: 460/58 633/280 712/848
PATH: 280/464 240/5832 320/219 229/426


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

(c) 1994,  bbs@darkrealms.ca