Search Results

Search: Posts Made By: RudiC
1,691
Posted By RudiC
Glad it works. How about this somewhat shorter...
Glad it works. How about this somewhat shorter approach:
END {if (SEQ) printf "-%0*d", LEN, $1
printf "]\n"
}
1,691
Posted By RudiC
How about awk ' NR == 1 {PFX =...
How about
awk '
NR == 1 {PFX = substr ($1, 1, match ($1, /[0-9]/)-1)
printf "%s[", PFX
LEN = length($1) - length(PFX)
PRE = -1E9
...
Showing results 1 to 2 of 2

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