[kwlug-disc] bash has mapfile... I had no idea

Anton Avramov lukav at lukav.com
Tue Dec 10 09:49:33 EST 2024


OMG! that is fantastic!

Thank you Ronald! That would save me a lot of time and debugging.

On 2024-12-10 03:29, Ronald Barnes via kwlug-disc wrote:
>
> 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?
>
>
> _______________________________________________
> kwlug-disc mailing list
> To unsubscribe, send an email to kwlug-disc-leave at kwlug.org
> with the subject "unsubscribe", or email
> kwlug-disc-owner at kwlug.org to contact a human being.



More information about the kwlug-disc mailing list