Search Results

Search: Posts Made By: varunrbs
6,628
Posted By rdcwayx
awk -v D=$var1 '!...
awk -v D=$var1 '! match($0,/'"$var1"'|'"$var2"'|'"$var3"'/) {s=substr($0,20,length-19); $0=D s}1' urfile
4,323
Posted By pludi
See, that's why I said make sure that f3 has the...
See, that's why I said make sure that f3 has the spaces at the end itself. It doesn't. read will strip away the contents of $IFS from everything it reads before assigning it to the variable. This...
2,698
Posted By Leion
try this ? a[] is an array keeping track how...
try this ?
a[] is an array keeping track how many times the account has appeared. if it appears the first time, we print it

awk '{account=substr($0,1,30); a[account]++; if(a[account]==1){print...
Showing results 1 to 3 of 3

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