Search Results

Search: Posts Made By: gafoleyo73
11,085
Posted By Don Cragun
Note that if you use a Korn shell newer than the...
Note that if you use a Korn shell newer than the 1988 version, you can do this entirely in the shell. Just note that in awk the exponentiation operator is ^ but in ksh arithmetic expansions it is...
1,486
Posted By Jotne
And since print is the default action, you can...
And since print is the default action, you can remove it too.
No need for quotes for a singe , in Filed Separator.

awk -F, '$1<=62 && $4=="M"' file
1,486
Posted By balajesuri
awk -F',' '$1<=62 && $4=="M" {print}'...
awk -F',' '$1<=62 && $4=="M" {print}' file
11,085
Posted By vidyadhar85
use -v option of awk to pass shell variables.. ...
use -v option of awk to pass shell variables..

awk -F"," '{print $1" "$2}' cre|read var1 var2
echo $var1"\n"$var2 > ggh
awk -v v1=$var1 -v v2=$var2 'BEGIN {print...
3,471
Posted By mirni
Try: awk '!a[$1]++||($2-old[$1] >...
Try:
awk '!a[$1]++||($2-old[$1] > 30){print}{old[$1]=$2}'Based on the logic you described, you are missing line
AN134 338 426496 1906 1 UNE Cefaclor in your sample output,...
Showing results 1 to 5 of 5

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