3 ms·
Read a repetitively formatted text file line by line and do something relatively simple with it? It's just begging to be done with awk. awk '{print $0 * NR}' f
by EliRivers 13y ago
Read a repetitively formatted text file line by line and do something relatively simple with it? It's just begging to be done with awk.
awk '{print $0 * NR}' fileOfNumbers > output
I did use > to dump the output to file. Should that count as bash-fu?