Search Results

Search: Posts Made By: charlie87
2,497
Posted By charlie87
my bad! yes it was a copy paste error! :P ...
my bad! yes it was a copy paste error! :P
Thanks RudiC so far so good the command is working when it is plugged in the startup script
2,497
Posted By charlie87
Yes, you are right! if i'm executing this bit of...
Yes, you are right! if i'm executing this bit of code standalone it doesnt throw any errors! however when this is plugged into a startup script it is giving that empty regular expression error.
...
2,497
Posted By charlie87
nawk -v host=$HOSTNAME '{ if(match($2,host) &&...
nawk -v host=$HOSTNAME '{
if(match($2,host) && !match($1,"#")) {
if(match($1,"merge"))
print $1"\t"$2"\tM";
else if(match($1,"parser"))
print...
2,497
Posted By charlie87
Find pattern and replace using sed
Hi,
i want to replace the following lines in such a way that if the word merge exists in first column it must replace the 3rd column as M and if parse exists in first column then the last column...
2,684
Posted By charlie87
Thank you for making it clear!:b:
Thank you for making it clear!:b:
2,684
Posted By charlie87
Thanks a ton! it worked!! :) :)
Thanks a ton! it worked!! :) :)
2,684
Posted By charlie87
Perl one liner in bash script not replacing hours and minutes [HH:MM]
Hi

I want to replace time stamp in the following line
PROCNAME.Merge.exchMon.CODE.T_QSTART 08:45 read

assuming the new time stamp is 09:45 ; the line is getting replaced as...
2,071
Posted By charlie87
Hi RudiC logString=$(/usr/bin/grep ...
Hi RudiC
logString=$(/usr/bin/grep "$(/usr/bin/date +"%m/%d") 0[56]\(:[0-9]\{2\}\)\{2\}.*Active region has been" <log name>) does not seem to work, i have reverted my code back to using 3 greps
...
2,071
Posted By charlie87
Thanks RudiC i'll try this command and keep...
Thanks RudiC

i'll try this command and keep you posted :)
2,071
Posted By charlie87
Hey RudiC thanks for your response I have...
Hey RudiC
thanks for your response

I have managed to fix this issue, now its working consistently
There was no escape sequence needed for %m and %d

Now after fixing the line reads like this...
2,071
Posted By charlie87
Any suggestions from anyone?
Any suggestions from anyone?
2,071
Posted By charlie87
1 What UNIX? - SunOS 11.4.5 2....
1 What UNIX?
- SunOS 11.4.5
2. What shell? -
- /bin/sh
3. a sample of the log file that you know has the pattern. A few lines are great.
- STATUS...
2,071
Posted By charlie87
Execution problem with Cron
Hi,
I'm unable to understand why the grep command in cronjob works intermittently

Expected output:
Grep command to look for a particular string with today's date and exit from infinite while...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 08:39 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy