Nп/п : 7 из 13
От : Daniel Path 2:371/52 02 фев 23 14:39:49
К : Rick Smith 02 фев 23 17:06:27
Тема : bash script and grep
----------------------------------------------------------------------------------
@MSGID: 2:371/52@fidonet 63dbbd5a
@REPLY: 1:105/10 63da89be
@PID: GED+2 1.1.4.7
@CHRS: IBMPC 2
@TZUTC: 0100
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/
$//``
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)
SEEN-BY: 1/120 18/0 19/10 50/109 116/116 123/0 25
160 170 180 200 525 755
SEEN-BY: 123/3001 135/300 153/7715 222/2 240/1120
1634 8002 8005 250/1
SEEN-BY: 275/1000 280/464 291/111 299/6 301/1
335/364 371/0 52 452/166 466/50
SEEN-BY: 467/888 712/1321 2320/105 3634/0 12 12 27
56 57 119 5000/111
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
830 846 848 1042 4441
SEEN-BY: 5020/12000 5030/49 1081 1474 5054/8
5058/104 5064/56 5075/128 5083/1
SEEN-BY: 5083/444 5090/958
@PATH: 371/52 0 240/1120 3634/12 5020/1042 4441