i changed
if [$(less log-file.gz | grep $line)]
to
if $(less log-file.gz | grep $line)
still have error message like these. i don't know why.
[root@lanlinux1 cisco-log]# ./splitaccount
./splitaccount: line 4: Dec: command not found
./splitaccount: line 4: Dec: command not found...
#!/bin/sh
while read line
do
if [$(less log-file.gz | grep $line)]
then
echo $line >> activeaccount.txt
else
echo $line >> inactiveaccounts.txt
fi
done < accounts.txt
got errors message
[pooq@testlinux]# ./splitaccount
./splitaccount: line 4: []: command not found...
read some old posts and got this myself.
#!/bin/ksh
while read line
do
if [$(less log-file.gz | grep $line)]
then
write to file 1
else write to file 2
fi
done < accounts.file
I need to work out how to implement writing to file... sigh.. jamisar gave me no help. hehe :)
i am just beginning to learn shell programming. but now got a task like this
which is out of my control. can somebody help me?
I have a huge log-file
and a user account file (text, 500 lines, seperate by space) like this
jsmith John Smith
gstone George Stone
....
....
need to read the...
thelad, Thanks for your reponse.
ARCserve tap server v7.00
netware 5.1 sp revision 03.
server/switch ports have all been forced to 100/full duplex.
it's fine to backup other novell servers except this one.
this one is fine to connect to other servers except this backup operation.
it's fine from this server to another server. i saw 100M bytes in 10 minutes
it's also fine from other servers to backup machine.
but when i do the backup from the server to backup machine
it's very slow. i used sniffer to check the traffic. there is tcp packets window frozen....
all these...
I need to monitor the traffic between a port of 5500 switch and a server
i read this link http://www.robertgraham.com/pubs/sniffing-faq.html
in FAQ.
It's said I need to reconfigure span/monitor port on switch
But What command should I use to configure spantree in 5500?
Thanks a lot!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.