Search Results

Search: Posts Made By: Random_Net
Forum: HP-UX 08-18-2010
5,554
Posted By Random_Net
one solution
I solved it in a rather tedious way,

You'll have the old time time1 and new time2 which you'll get through

"date +%Y%m%d%H%M%S" | getline timexFirst idea was to convert the whole time into...
Forum: HP-UX 08-16-2010
5,554
Posted By Random_Net
Compare dates
Hi,

I want to convert two datetime fields to find out if the difference is one hour, in linux I've done this by converting both the datetime values to unix epoch time and subtracting them to find...
3,664
Posted By Random_Net
@Franklin52, Thanks for replying to both of my...
@Franklin52,
Thanks for replying to both of my queries in this forum:)
3,664
Posted By Random_Net
Awk new datetime everyline
Hi,

I'm using awk in HP-UX machine which does not support systime(), strftime(). So to get the date time I was using :



seq 1 100000 | awk ' "date +%Y%m%d%H%M%s" | getline curtime; print...
3,018
Posted By Random_Net
It works :)
Thanks,


sed '...filtering...' filename | while read line
do
flog "$line"
done

Works perfectly :)

However this also works but at the end of printing it'll print an additional line...
3,018
Posted By Random_Net
cat arguments to a function
Hi,

I've a logging function in bourne shell, flog() which logs the first argument passed to it. How can I pass arguments to this function from a file, like

cat filename | sed...
Showing results 1 to 6 of 6

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