Search Results

Search: Posts Made By: asjaiswal
21,185
Posted By asjaiswal
Perfect! It worked. Thank you
Perfect! It worked. Thank you
21,185
Posted By asjaiswal
Using "mailx" command to read "to" and "cc" email addreses from input file
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address...
3,714
Posted By asjaiswal
Corona688- I guess in the process of formatting...
Corona688- I guess in the process of formatting date string to bring it to standard date format, I am doing something wrong. I noticed its changing field position number.
I haven’t tried to figure...
3,714
Posted By asjaiswal
Removed “-“ from date format excecuted cmd: ...
Removed “-“ from date format
excecuted cmd: awk ' {sub(/:/, " ", $5);sub(/-/, " ", $4); TS=mktime($4 " " $5 " 00" ); print TS}' timestamp.txt

Output:
1381528800
1381338000
1381788000...
3,714
Posted By asjaiswal
I executed following awk command to print ...
I executed following awk command to print Variable “TS”
awk ' {sub(/:/, " ", $5); TS=mktime($4 " " $5 " 00" ); print TS}' logfile

Output:
1323644400
1323453600
1323903600
1323727200...
3,714
Posted By asjaiswal
Yes, I am looking to acheive this in...
Yes, I am looking to acheive this in "awk"
3,714
Posted By asjaiswal
Condition based on Timestamp (Date/Time based) from logfile (Epoch seconds)
Below is the sample logfile:

Userids Date Time
acb Checkout time: 2013-11-20 17:00
axy Checkout time: 2013-11-22 12:00
der Checkout time: 2013-11-17 17:00
...
12,672
Posted By asjaiswal
That’s just wonderful. I knew I am being very...
That’s just wonderful. I knew I am being very amateur in that coding.
One last help on “Message body” I want my message body content same as input file (in this case “input”)
Thanks lot.
12,672
Posted By asjaiswal
Srutinizer- Thanks lot for pointing out that. ...
Srutinizer- Thanks lot for pointing out that.

awk '{a[$1]+=$3}END{for(i in a){print i, a[i]}}' test > output1
awk '{if ($2 > 25) print $1}' output1 > output2 #### Sorting usage ...
12,672
Posted By asjaiswal
awk to sum column field from duplicate row/lines
Hello,
I am new to Linux environment , I working on Linux script which should send auto email based on the specific condition from log file. Below is the sample log file

Name m/c ...
Showing results 1 to 10 of 10

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