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$//'`
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$//'`
telnet://bbs.roonsbbs.hu:1212 <<=-
* Forwarded from area 'LINUX-UBUNTU'
Hello Rick,
01 Feb 23 07:44, you wrote to All:
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.
haha. thats my script :)
try: grep "1:105/81" or set it as a variable as in the original script
;)
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$//'`
try: grep "1:105/81" or set it as a variable as in the original script
Greetings Daniel!
Thursday February 02 2023 14:39, you wrote to me about an urgent
matter!:
* Forwarded from area 'LINUX-UBUNTU'
Hello Rick,
01 Feb 23 07:44, you wrote to All:
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.
haha. thats my script :)
try: grep "1:105/81" or set it as a variable as in the original
script ;)
It worked thankyou! Is there a way to have maxmimus number the echo's instead of fidonet.echoname,
or perhaps some way to scroll and select
with arrow keys?
telnet://bbs.roonsbbs.hu:1212 <<=-
Hi Daniel,
On 2023-02-02 14:39:49, you wrote to Rick Smith:
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$//'`
try: grep "1:105/81" or set it as a variable as in the original
script
Strange... On my linux in bash these give the same result:
# echo 1:1/1 | grep 1:1/1
1:1/1
# echo 1:1/1 | grep "1:1/1"
1:1/1
There is an alias for grep:
alias grep='grep --color=auto'
But that shouldn't make a difference. Maybe on ubuntu it's different?
telnet://bbs.roonsbbs.hu:1212 <<=-
Sysop: | Eric Oulashin |
---|---|
Location: | Beaverton, Oregon, USA |
Users: | 89 |
Nodes: | 16 (1 / 15) |
Uptime: | 20:56:44 |
Calls: | 4,994 |
Calls today: | 6 |
Files: | 8,492 |
Messages: | 351,230 |