Search Results

Search: Posts Made By: Elly
7,039
Posted By greet_sed
Hi, It depends on what you have in $5 and...
Hi,


It depends on what you have in $5 and if condition succeeds.
value is sumed up only when if condition is executed.

I tried as follows and looks fine :

cat f1...
7,039
Posted By greet_sed
Hi, Can you try like this? DATE=$(date...
Hi,

Can you try like this?

DATE=$(date +%Y%m%d -d "1 day ago")
awk -F, -vy=DATE '$0 ~ y {a[FILENAME]++ } END { for (i in a) { print i a[i] }}' /path1/usr/STAT/GPRS/ESTCOL_GPRS_2016*

If...
10,829
Posted By danmero
Something like: awk '{a[FILENAME]++}END{for(i...
Something like:
awk '{a[FILENAME]++}END{for(i in a)print i,(a[i]-1)}' * > newfile
Showing results 1 to 3 of 3

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