Search Results

Search: Posts Made By: scripter123
1,291
Posted By scripter123
Remove error code in output
Hi, i have the below code that will compare the value from 2 variables:
./wlst.sh JMSmon.py > out.dat
w=`sed -e 's/\(.*!\)\(.*\)\(, Queue.*$\)/\2/' out.dat | awk '/'$1'/{n=0;{print $n}}'|head -n 1`...
5,341
Posted By scripter123
Hi Alister, Sorry. Ill take note of that code...
Hi Alister,
Sorry. Ill take note of that code tags.
Thanks for the help Don. I got it resolved.
5,341
Posted By scripter123
Thanks Don, "date -d "$d 5 days" +%F" works so...
Thanks Don,
"date -d "$d 5 days" +%F" works so far in ubuntu. But i have another problem when executing the below commands:
while read d
do
x=$(date -d "$d 5 days" +%F)
echo $x
sed...
5,341
Posted By scripter123
Hi Don, Thanks for the response. Basically...
Hi Don, Thanks for the response.
Basically print substr($i, 1, 10) will display a timestamp e.g. 2013-16-07.
I want this timestamp to be assigned in a variable e.g. "x".
Then ill add 5 days using...
5,341
Posted By scripter123
Hi Don, Thanks, the command works well and...
Hi Don, Thanks, the command works well and apologies on the previous confusion.

I have a follow query on how would i put into a variable the return dates.
print substr($i, 1, 10) - as what i...
5,341
Posted By scripter123
apologies gentlemen.
apologies gentlemen.
5,341
Posted By scripter123
Thanks. I think i would need to give the exact...
Thanks.
I think i would need to give the exact sample of the content.

See below:
my birthday="1977-15-07L5093" my birthday="1967-15-07L5678"
my birthday="1970-15-07L5093"

My desired output...
5,341
Posted By scripter123
Thanks.. Can you show me how it is done in awk...
Thanks.. Can you show me how it is done in awk and grep? Thanks a lot
5,341
Posted By scripter123
Print character after pattern found
Hi Gurus, i need your help to create a script the will print a characters after the pattern was found.
Sample lines are below:

My birthday:"1977-16-07", My birthday:"1975-16-07"
My...
Showing results 1 to 9 of 9

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