Quick question, in you script I see you put {} around your variables when you call them and that you double up on some other things like [[]] (())
any reason for this?
How does the system handle the rename and delete of the errorlog files? The reason I ask is because I am funning various scripts with set -x so that I can track them in the error log, now due to an increase in runs my errorlogs are growing too large. Is there a way to change how the system...
nawk 'BEGIN { FS = "," }
nawk 'At the BEGINing set the Field Seperator to ","
$1 == '"$DATE2"'
check if the first field is equal to "$DATE2"
&& $3 == "ERROR"
Also check is the third field is equal to "ERROR"
{ print $5...
I want to port some unix scripts to perl, mostly for the fun of it. If anyone is kind enough could you help me convert this stuff. Converting these two functions should give me enough of a feel for it to do the rest.
#!/bin/sh
##################
# USAGE_function #
##################...
That would mean we would create approx 100 directories a day. And have to maintain 300 at a time. Since grep is not recursive it would make research very difficult.
Working with large directories
I have a SUN blade 2000 running Solaris 8 that works with lots of files each day. I would say around 50 thousand files a day. We need to maintain at least 3 days worth of these files for research purposes if an error occurs.
There are two problems with this...
Working with large directories
I have a SUN blade 2000 running Solaris 8 that works with lots of files each day. I would say around 50 thousand files a day. We need to maintain at least 3 days worth of these files for research purposes if an error occurs.
There are two problems with this...
I have a SUN blade 2000 running Solaris 8 that works with lots of files each day. I would say around 50 thousand files a day. We need to maintain at least 3 days worth of these files for research purposes if an error occurs.
There are two problems with this.
1. Our crontab fails to delete...
Ygor,
thx again that worked great, any chance you could give me a bit of an explanation of how it works. I have been studying awk since you first helped me but this is way over my head.
EOF is the last line of each record. There can be many records in 1 file. I want to write "Line 1" after the last instance of "Page:" in each record. I want to write "Line 4" after the last instance of “Begin” in each record.
"Begin" comes after...
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.