[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: printf '%s\n' "$@" versus <<< redirection
From: |
Greg Wooledge |
Subject: |
Re: printf '%s\n' "$@" versus <<< redirection |
Date: |
Sat, 18 Feb 2023 12:03:48 -0500 |
On Sat, Feb 18, 2023 at 05:02:22PM +0100, alex xmb ratchev wrote:
> On Sat, Feb 18, 2023, 4:18 PM Greg Wooledge <greg@wooledge.org> wrote:
>
> > On Sat, Feb 18, 2023 at 10:46:08AM +0000, goncholden wrote:
> > > My intention is to use prinf line by line on arguments containing
> > newlines. With a newline also introduced between arguments $1 $2 $3 etc.
> >
> > This is quite unique. I don't believe I've ever seen someone try to
> > write a command where each argument is a group of lines, and all of
> > the groups of lines are supposed to be concatenated together to form
> > one bigger group of lines.
> >
>
> i d try keep in a var array asignment , for speed
> read , and stdin to tmp file , no good speed
Yeah, I immediately thought about arrays. But without knowing where
these arguments are coming from, or what else is involved in this
script's goal, I didn't want to make suggestions which would involve
huge rewrites.
- printf '%s\n' "$@" versus <<< redirection, goncholden, 2023/02/18
- Re: printf '%s\n' "$@" versus <<< redirection, Kerin Millar, 2023/02/18
- Re: printf '%s\n' "$@" versus <<< redirection, goncholden, 2023/02/19
- Re: printf '%s\n' "$@" versus <<< redirection, Kerin Millar, 2023/02/19
- Re: printf '%s\n' "$@" versus <<< redirection, goncholden, 2023/02/19
- Re: printf '%s\n' "$@" versus <<< redirection, Kerin Millar, 2023/02/19
Re: printf '%s\n' "$@" versus <<< redirection, alex xmb ratchev, 2023/02/18