LINUX-UBUNTU------------- < Пред. | След. > -- < @ > -- < Сообщ. > -- < Эхи > --
 Nп/п : 5 из 13
 От   : Rick Smith                          1:105/10          01 фев 23 07:44:02
 К    : All                                                   01 фев 23 19:00:13
 Тема : bash script and grep
----------------------------------------------------------------------------------
                                                                                 
@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/
$//``



----
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/120 123 15/0 18/0 19/10 50/109 90/1
105/7 10 11 44 81 85 420 500
SEEN-BY: 106/201 114/709 116/116 120/340 123/0 25
131 160 170 180 200 525 755
SEEN-BY: 123/3001 129/305 135/300 138/146 153/7715
218/700 222/2 226/30
SEEN-BY: 227/114 229/110 111 112 113 114 206 307
317 400 424 426 428 470 550
SEEN-BY: 229/616 664 700 240/1120 250/1 261/38
266/512 275/100 1000 282/1038
SEEN-BY: 299/6 301/1 317/3 320/219 322/757 342/11
200 396/45 452/166 460/58
SEEN-BY: 466/50 467/888 633/280 712/848 1321 1321
2320/105 3634/0 12 27 56 57
SEEN-BY: 3634/119 5000/111 5001/100 5005/49 5015/255
5019/40 5020/715 830 846
SEEN-BY: 5020/848 1042 4441 12000 5030/49 1081
1474 5054/8 5058/104 5064/56
SEEN-BY: 5075/128 5083/1 444 5090/958
@PATH: 105/10 81 229/426 153/7715 3634/12 5020/1042
4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх