Nп/п : 6 из 13
От : Wilfred van Velzen 2:280/464 01 фев 23 17:05:23
К : Rick Smith 01 фев 23 19:18:19
Тема : Re: bash script and grep
----------------------------------------------------------------------------------
@MSGID: 2:280/464 63da8e1b
@REPLY: 1:105/10 63da89be
@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
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/
$//``
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 120 123 15/0 16/0 18/0 19/10 37
50/109 90/1 105/81 106/201
SEEN-BY: 114/709 116/116 120/340 123/0 25 130 131
160 170 180 200 525 755
SEEN-BY: 123/3001 124/5016 129/305 135/300 138/146
142/104 153/757 7715 203/0
SEEN-BY: 218/700 221/0 222/2 226/30 227/114 229/110
111 112 113 114 206 307
SEEN-BY: 229/317 400 424 426 428 470 550 616 664
700 240/420 1120 1120 5411
SEEN-BY: 240/5832 5853 250/1 261/38 266/512 275/100
1000 280/464 282/1038
SEEN-BY: 292/8125 299/6 301/1 317/3 320/119 219
319 2119 322/0 757 341/66 234
SEEN-BY: 342/11 200 396/45 452/166 460/58 466/50
467/888 633/280 712/848 1321
SEEN-BY: 712/1321 2320/105 3634/0 12 27 56 57 119
5000/111 5001/100 5005/49
SEEN-BY: 5015/255 5019/40 5020/715 830 846 848
1042 4441 12000 5030/49 1081
SEEN-BY: 5030/1474 5054/8 5058/104 5064/56 5075/128
5083/1 444 5090/958
@PATH: 280/464 240/5832 320/219 229/426 153/7715
3634/12 5020/1042 4441