Search Results

Search: Posts Made By: finn
4
awk
1,875
Posted By RudiC
Wouldn't it be nicer to print the full minutes...
Wouldn't it be nicer to print the full minutes and seconds as well, to make the time recognizeable:
4
awk
1,875
Posted By RavinderSingh13
Hello finn, Could you please try following...
Hello finn,

Could you please try following and let me know if this helps.

awk '{A[substr($4,2,16)]++} END{for(i in A){print i "," A[i] ","}}' Input_file

Output will be as follows.
...
3,950
Posted By Aia
Perhaps a bit of Perl? #!/usr/bin/perl #...
Perhaps a bit of Perl?

#!/usr/bin/perl
# finn.report.pl

# these two statements help detecting bugs
use strict;
use warnings;

my %dates; # to keep a record by dates

# read the file...
3,950
Posted By RavinderSingh13
Hello finn, Following may help you in same,...
Hello finn,

Following may help you in same, if order doesn't matter for you.

1st:
awk '{split($3, A,".");B[A[1]"."A[2]]++} END{for(i in B){print i OFS B[i]}}' OFS=" = " Input_file
OR for...
3,950
Posted By Akshay Hegde
[akshay@localhost tmp]$ cat file 02/Sep/2015:...
[akshay@localhost tmp]$ cat file
02/Sep/2015: IP 11.151.108.166 error occurred etc
03/Sep/2015: IP 11.151.108.188 error occurred etc
03/Sep/2015: IP 11.152.178.250 error occurred etc
03/Sep/2015:...
1,878
Posted By Don Cragun
If you look at the man page for at on your...
If you look at the man page for at on your system, it will probably give you the name of the directory containing the queued at jobs (or include a SEE ALSO entry for another man page that give you...
1,878
Posted By fpmurphy
Unlike cron jobs, at jobs store the complete...
Unlike cron jobs, at jobs store the complete environment of the process that created them. You can typically figure the owner of the process by examining the environmental variables included in the...
2,574
Posted By MadeInGermany
ls -tl | head -1 Take mtime (no -c) unless...
ls -tl | head -1
Take mtime (no -c) unless there is a good reason for ctime.
2,574
Posted By blackrageous
Check out ls -ctl | head
Check out

ls -ctl | head
2,574
Posted By RudiC
Look at the threads listed at the bottom of the...
Look at the threads listed at the bottom of the page, e.g. Find the latest file based on the date in the filename...
Showing results 1 to 10 of 10

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