37 reputation
5
bio website thdyoung.com/scrapbook
location
age
visits member for 1 year, 11 months
seen Jan 16 at 16:09

Dec
12
comment awk - streamline this script
Gilles - thanks for the formatting tips.
Dec
11
awarded  Commentator
Dec
11
comment awk - streamline this script
Your solution doesn't require the array population process to run through the whole input first. V nice. Are the subtractions back to front i.e a[NR-1] - a[NR] is right ?
Dec
11
comment awk - streamline this script
Nice. Just what I wanted - briefer, less fussy, less galumphing, and an alternative construction of a solution to the same problem. Question: doesn't the population of arrays a, b, and c have to be finished off with an END ?
Dec
11
accepted awk - streamline this script
Dec
11
awarded  Editor
Dec
11
comment awk - streamline this script
i've edited my post to answer your question
Dec
11
revised awk - streamline this script
added 96 characters in body
Dec
11
asked awk - streamline this script
Apr
15
comment cumulative totals with shifted column
the new solution doesn't print zero in the number column of the first line
Apr
14
comment cumulative totals with shifted column
i am familiar w regular expressions so will try to get to grips with your solution: thanks for taking the time to set out your solution.
Apr
14
comment cumulative totals with shifted column
that is sweet !
Apr
14
asked cumulative totals with shifted column
Dec
25
awarded  Supporter
Nov
23
answered How to print all lines after a match up to the end of the file?
Nov
20
comment renaming diverse files
Thanks for your help.
Nov
20
accepted renaming diverse files
Nov
20
comment renaming diverse files
That works, thx. I don't quite get the last line of your script, in particular the recursive use of $A. Bash loops thru numbers stored in $nos. Each loop writes out a substitution. When the loop finishes, run the final sed which, for two numbers, is a sequence of 2 consecutive sed operations starting with the last one, and ending w the first one...(?)
Nov
20
asked renaming diverse files
Oct
26
awarded  Scholar