Search Results

Search: Posts Made By: kumar30213
1,835
Posted By disedorgue
Hi, Try: grep...
Hi,
Try:
grep '[0-9][0-9]/[0-9][0-9]/[0-9][0-9][0-9][0-9]' file_all.txt | sort

But in your file, just:
grep '/' file_all.txt | sort

Regards.
1,368
Posted By Scrutinizer
@Chubler, what about around year changes?
@Chubler, what about around year changes?
1,368
Posted By Chubler_XL
Looks like your on Fedora so you should have GNU...
Looks like your on Fedora so you should have GNU date:

set -- $(date -d "-30 days" "+%Y %m %d %p %I %M")
awk -vY=$1 -vm=$2 -vd=$3 -vp=$4 -vI=$5 -vM=$6 '
$3>Y||
$3==Y&&$1>m||...
1,368
Posted By Chubler_XL
Should all be good, comparison is Y M D AM H M in...
Should all be good, comparison is Y M D AM H M in that order.
1,368
Posted By Chubler_XL
Try this: set -- $(perl -MPOSIX...
Try this:

set -- $(perl -MPOSIX -le'@a=localtime;$a[3]-=30;print strftime "%Y %m %d %p %I %M",@a')
awk -vY=$1 -vm=$2 -vd=$3 -vp=$4 -vI=$5 -vM=$6 '
$3>Y||
$3==Y&&$1>m||
$3==Y&&$1==m&&$2>d||...
1,671
Posted By CarloM
Try: find /allcode/mainld/process/recenttmp...
Try:
find /allcode/mainld/process/recenttmp -type f ! -name "* *"
2,108
Posted By Akshay Hegde
Please.. look into answer once again :) ...
Please.. look into answer once again :)

Regards,
Akshay
2,108
Posted By RavinderSingh13
Hello, Following may help you. ...
Hello,

Following may help you.



awk '!a[$6]++' file_name



Output will be as follows.


03/17/2014 10:35 AM 618 Admin\vick abc_ xyz1_bc12_20140312_c.xlsx
03/17/2014 ...
2,108
Posted By SriniShoo
awk '{fname = ""; for(i = 6; i <= NF; i++) ...
awk '{fname = "";
for(i = 6; i <= NF; i++)
{fname = (fname == "") ? $i : (fname OFS $i)};
if(a[fname]++ == 0) {print $0}}'
Showing results 1 to 9 of 9

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