bash has mapfile... I had no idea
Ron / BCLUG
admin at bclug.ca
Tue Dec 10 03:27:21 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.
More information about the Discuss
mailing list