[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fastest way to copy a bash array to a file
From: |
alex xmb ratchev |
Subject: |
Re: fastest way to copy a bash array to a file |
Date: |
Thu, 13 Jul 2023 16:15:48 +0200 |
On Thu, Jul 13, 2023, 5:15 AM Budi <budikusasi@gmail.com> wrote:
> How fastest, simplest way to copy or write a bash array values to a file
> e.g.
>
> m=( foo bar baz )
>
> printf '%s\n' "${m[@]}" >test
>
>
> Is there/what'd be faster way by use of binary utility instead of
> redirection ?
>
declare -p var
printf %s\\0
>