[kwlug-disc] bash has mapfile... I had no idea
Ronald Barnes
ron at ronaldbarnes.ca
Tue Dec 10 03:29:45 EST 2024
Today I learned about bash's `mapfile` built-in function.
Next time I want to read lines from a file to an array for processing,
that will be choice of methods.
What a great (and surprising) utility!
Check out Dave's explanation in his 2½ minute bash video (the channel is
highly recommended for bash tutorials):
https://www.youtube.com/watch?v=Z7Ie7NrUQV0
If I had ever read about this before, I must have completely forgotten
about it.
Is this widely known to KWLUG folks and I'm just out of the loop?
More information about the kwlug-disc
mailing list