help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sed with Variable Substitution in the command


From: alex xmb sw ratchev
Subject: Re: sed with Variable Substitution in the command
Date: Fri, 27 Sep 2024 09:05:47 +0200

u talk in bash , or posix mode ? or awk ?

set {1..13}
echo $11
11

bash

On Thu, Sep 26, 2024 at 7:16 PM Greg Wooledge <greg@wooledge.org> wrote:
>
> On Thu, Sep 26, 2024 at 18:53:59 +0200, alex xmb sw ratchev wrote:
> > On Thursday, September 26, 2024, Wiley Young <wyeth2485@gmail.com>
wrote:
> > > "${1}"
> > >             "$1" is okay
> > > "${11}"
> > >             "$11" is an error
>
> > sorry .. where is $11 and error ?
>
> $11 would be equivalent to ${1}1 which is not what's intended.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]