great it works !!
a sysadmin changed the permissions on the file :( without telling me over the weekend. your tips have been great thank you very very much.
If I now wanted to pass user input to gwak script ie.
#!/bin/sh
echo "What is DSN or BUSORG_ORGID for your search?"
read BUSORG_ORGID...
thanks for the tip
i just tried :
/^END/ && ok && numeric > "20000000000000" && numeric < "20060425235959" { print sec }' *.rv>dateresults.txt
and still nothing :(
Thanks Annihilannic
thats great i still need to work on it a little i think but at least i have a good idea form your script.
I did test yours but got nothing in a out put file
/^END/ && ok && numeric > "20060420000000" && numeric < "20060421235959" { print sec }' *.rv>dateresults.txt
Thankyou both for your suggetions They sound good but a little confused on how to impliment them
Dear Mike
The code looks good however my perl knowledge is very basic. So i see that it will find the right range , but what about the ORGID?
How do I incoperate this into my script?
gawk...
Your right.
sorry
it the date thing i am not sure how to do it.
Sure how to compare dates and find if they are in a desired range.i.e
I thought i would convert start date and end date :
from dd mm yyy to yyy ddd
then minus end yyy ddd from start yyy ddd
then ???
I am not sure how to do...
Hi i am a noob and need a little help to finish my shell script. I am learning as i go but hit a problem.
I am search thorugh logs(*.rv) files to find entires between two user defined dates,ie dd mm yyyy - dd mm yyy
The script so far looks for the "START" and "END" of each entry at sees if it...
I want to export from a log file.from ^START to ^END only if that record is from "BUSORG_ORID#" i want
So far I have...
awk /^START/,/^END/ *.rv >results.txt # this is able to divide the text file into the sections i want.
and i was thinking about something like...
awk /^START/,/^END/ &&...
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.