Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Unix will self-destruct in five seconds... 4... 3... 2... 1...


computers / alt.os.linux.mint / Re: bash script problem

SubjectAuthor
* bash script problempinnerite
+* Re: bash script problemBig Al
|`- Re: bash script problemBig Al
`* Re: bash script problemDan Purgert
 `* Re: bash script problempinnerite
  `* Re: bash script problemDan Purgert
   `- Re: bash script problempinnerite

1
bash script problem

<20230609161135.6a25d08cb5ce9610afad7148@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6275&group=alt.os.linux.mint#6275

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pinner...@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: bash script problem
Date: Fri, 9 Jun 2023 16:11:35 +0100
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <20230609161135.6a25d08cb5ce9610afad7148@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="e4a426804c399af3a75029194ae43cc6";
logging-data="2046938"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/myCDMq4+tYliE0n//l/uNVvRC0qpiaPk="
Cancel-Lock: sha1:7y/CuDgk0xSlRhZ/h9ikqpfKetk=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: pinnerite - Fri, 9 Jun 2023 15:11 UTC

I am trying to recover a bash script that has gone "funny".
The nub of it is this.

Three variables are created each to receive the result of an expression.
The results are all character strings:

first=$(an nexpression)
second=$('nother expression)
third=$(yet another expression)

If I echo them indivually they display the desired string

I want to "echo" them as one line with a single space character between them like:

$ echo $first <space> $second <space> $third

I cannot get it to work. :(

Alan

Re: bash script problem

<u5vfth$1uga1$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6276&group=alt.os.linux.mint#6276

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bea...@invalid.com (Big Al)
Newsgroups: alt.os.linux.mint
Subject: Re: bash script problem
Date: Fri, 9 Jun 2023 11:19:12 -0400
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <u5vfth$1uga1$1@dont-email.me>
References: <20230609161135.6a25d08cb5ce9610afad7148@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 9 Jun 2023 15:19:13 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b3331c164e3d472845765f84cec682c3";
logging-data="2048321"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/CcKvG3kiQhddTdkvu/usW/gvbXox815U="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:b2bfc1A6CPI1e3D8R7hdAo6i3+U=
In-Reply-To: <20230609161135.6a25d08cb5ce9610afad7148@gmail.com>
Content-Language: en-US
 by: Big Al - Fri, 9 Jun 2023 15:19 UTC

On 6/9/23 11:11, this is what pinnerite wrote:
> I am trying to recover a bash script that has gone "funny".
> The nub of it is this.
>
> Three variables are created each to receive the result of an expression.
> The results are all character strings:
>
> first=$(an nexpression)
> second=$('nother expression)
> third=$(yet another expression)
>
> If I echo them indivually they display the desired string
>
> I want to "echo" them as one line with a single space character between them like:
>
> $ echo $first <space> $second <space> $third
>
> I cannot get it to work. :(
>
> Alan
echo $a" "$b" "$c
--
Linux Mint 21.1 Cinnamon 5.6.8
Al

Re: bash script problem

<u5vfvh$1uga1$2@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6277&group=alt.os.linux.mint#6277

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Bea...@invalid.com (Big Al)
Newsgroups: alt.os.linux.mint
Subject: Re: bash script problem
Date: Fri, 9 Jun 2023 11:20:17 -0400
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <u5vfvh$1uga1$2@dont-email.me>
References: <20230609161135.6a25d08cb5ce9610afad7148@gmail.com>
<u5vfth$1uga1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 9 Jun 2023 15:20:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="b3331c164e3d472845765f84cec682c3";
logging-data="2048321"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+6CsB5WZDQ18m1xmGtSEGjp+sBAXUTyoI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:2oH0Pzf8e+9gmbNPWXCaXRjrS4s=
In-Reply-To: <u5vfth$1uga1$1@dont-email.me>
Content-Language: en-US
 by: Big Al - Fri, 9 Jun 2023 15:20 UTC

On 6/9/23 11:19, this is what Big Al wrote:
> On 6/9/23 11:11, this is what pinnerite wrote:
>> I am trying to recover a bash script that has gone "funny".
>> The nub of it is this.
>>
>> Three variables are created each to receive the result of an expression.
>> The results are all character strings:
>>
>> first=$(an nexpression)
>> second=$('nother expression)
>> third=$(yet another expression)
>>
>> If I echo them indivually they display the desired string
>>
>> I want to "echo" them as one line with a single space character between them like:
>>
>> $ echo $first <space> $second <space> $third
>>
>> I cannot get it to work.  :(
>>
>> Alan
> echo $a" "$b" "$c
or maybe just echo "$first $second $third"
--
Linux Mint 21.1 Cinnamon 5.6.8
Al

Re: bash script problem

<slrnu86hs5.tpe.dan@djph.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6278&group=alt.os.linux.mint#6278

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dan...@djph.net (Dan Purgert)
Newsgroups: alt.os.linux.mint
Subject: Re: bash script problem
Date: Fri, 9 Jun 2023 15:37:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <slrnu86hs5.tpe.dan@djph.net>
References: <20230609161135.6a25d08cb5ce9610afad7148@gmail.com>
Injection-Date: Fri, 9 Jun 2023 15:37:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1dc59d502455b9d01455c681507c12db";
logging-data="2049062"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19yICxccD5Nh0fmNXeKInePqDFW04l3y1Y="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:D6rtHWKCiTx7YTgGIedpUcEa3ZA=
 by: Dan Purgert - Fri, 9 Jun 2023 15:37 UTC

On 2023-06-09, pinnerite wrote:
> I am trying to recover a bash script that has gone "funny".
> The nub of it is this.
>
> Three variables are created each to receive the result of an expression.
> The results are all character strings:
>
> first=$(an nexpression)
> second=$('nother expression)
> third=$(yet another expression)
>
> If I echo them indivually they display the desired string
>
> I want to "echo" them as one line with a single space character
> between them like:
>
> $ echo $first <space> $second <space> $third
>
> I cannot get it to work. :(
>
> Alan

Would be nice to see what the actual error message you were getting is,
but this will probably fix it for you:

$ echo "$first" "$second" "$third"

--
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

Re: bash script problem

<20230610133906.d3249063129074e408a5ecd9@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6281&group=alt.os.linux.mint#6281

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pinner...@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: Re: bash script problem
Date: Sat, 10 Jun 2023 13:39:06 +0100
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <20230610133906.d3249063129074e408a5ecd9@gmail.com>
References: <20230609161135.6a25d08cb5ce9610afad7148@gmail.com>
<slrnu86hs5.tpe.dan@djph.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="6183d3ac1eb1b8b99c7ce9f070cb6b03";
logging-data="2430617"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sqYsa26XjsKvDwRERBM7hIi2mYAsHLhQ="
Cancel-Lock: sha1:ijFtxh+VESnnMwxGyhXCz83TxwY=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: pinnerite - Sat, 10 Jun 2023 12:39 UTC

On Fri, 9 Jun 2023 15:37:34 -0000 (UTC)
Dan Purgert <dan@djph.net> wrote:

> On 2023-06-09, pinnerite wrote:
> > I am trying to recover a bash script that has gone "funny".
> > The nub of it is this.
> >
> > Three variables are created each to receive the result of an expression.
> > The results are all character strings:
> >
> > first=$(an nexpression)
> > second=$('nother expression)
> > third=$(yet another expression)
> >
> > If I echo them indivually they display the desired string
> >
> > I want to "echo" them as one line with a single space character
> > between them like:
> >
> > $ echo $first <space> $second <space> $third
> >
> > I cannot get it to work. :(
> >
> > Alan
>
> Would be nice to see what the actual error message you were getting is,
> but this will probably fix it for you:
>
> $ echo "$first" "$second" "$third"
>

I must apologise for not framing my question correctly.
What I wanted to do was to output the components that generated the
signature lines below to a file that could be read by sylpheed (news
reader). A desktop icon runs the script following a kernel upgrade.

It works but it is ugly.

You asked for the error messages. I couldn't scroll back to them I'm
sorry.

Thanks for your help everyone. If the Linuxmint web site hadn't been
down, I might have been able to resolve this without troubling everyone.

Alan

--
Linux Mint 21.1 kernel version 5.15.0-73-generic Cinnamon 5.6.8

Re: bash script problem

<slrnu89kd6.tpe.dan@djph.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6283&group=alt.os.linux.mint#6283

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dan...@djph.net (Dan Purgert)
Newsgroups: alt.os.linux.mint
Subject: Re: bash script problem
Date: Sat, 10 Jun 2023 19:39:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <slrnu89kd6.tpe.dan@djph.net>
References: <20230609161135.6a25d08cb5ce9610afad7148@gmail.com>
<slrnu86hs5.tpe.dan@djph.net>
<20230610133906.d3249063129074e408a5ecd9@gmail.com>
Injection-Date: Sat, 10 Jun 2023 19:39:12 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="13de9562c071e9ebe9270a1905c3b5e6";
logging-data="2525376"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+J8VpJXMp7tYEoe6nhK7WmZGpEX7wrnuQ="
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:p8tAYuM/4VZ7V2/iflAjysSKsOg=
 by: Dan Purgert - Sat, 10 Jun 2023 19:39 UTC

On 2023-06-10, pinnerite wrote:
> On Fri, 9 Jun 2023 15:37:34 -0000 (UTC)
> Dan Purgert <dan@djph.net> wrote:
>
>> On 2023-06-09, pinnerite wrote:
>> > I am trying to recover a bash script that has gone "funny".
>> > The nub of it is this.
>> >
>> > Three variables are created each to receive the result of an expression.
>> > The results are all character strings:
>> >
>> > first=$(an nexpression)
>> > second=$('nother expression)
>> > third=$(yet another expression)
>> >
>> > If I echo them indivually they display the desired string
>> >
>> > I want to "echo" them as one line with a single space character
>> > between them like:
>> >
>> > $ echo $first <space> $second <space> $third
>> >
>> > I cannot get it to work. :(
>> >
>> > Alan
>>
>> Would be nice to see what the actual error message you were getting is,
>> but this will probably fix it for you:
>>
>> $ echo "$first" "$second" "$third"
>>
>
> I must apologise for not framing my question correctly.
> What I wanted to do was to output the components that generated the
> signature lines below to a file that could be read by sylpheed (news
> reader). A desktop icon runs the script following a kernel upgrade.
>
> It works but it is ugly.

So what would you rather have than this icon on your desktop?

forums are also back, btw -- but the interaction will be much the same,
in that the people who'd be able to help would want to see the error
messages and/or the script itself.

--
|_|O|_|
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

Re: bash script problem

<20230610211010.8010054ce1ab6e599748fc93@gmail.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=6285&group=alt.os.linux.mint#6285

  copy link   Newsgroups: alt.os.linux.mint
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: pinner...@gmail.com (pinnerite)
Newsgroups: alt.os.linux.mint
Subject: Re: bash script problem
Date: Sat, 10 Jun 2023 21:10:10 +0100
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <20230610211010.8010054ce1ab6e599748fc93@gmail.com>
References: <20230609161135.6a25d08cb5ce9610afad7148@gmail.com>
<slrnu86hs5.tpe.dan@djph.net>
<20230610133906.d3249063129074e408a5ecd9@gmail.com>
<slrnu89kd6.tpe.dan@djph.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="6183d3ac1eb1b8b99c7ce9f070cb6b03";
logging-data="2536602"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/A0Tvsb51nE2qtq39Un4Co/UoHKBQ1zKU="
Cancel-Lock: sha1:zAQFO5ZDMZqMXKLj2tpwhXdD/dk=
X-Newsreader: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu)
 by: pinnerite - Sat, 10 Jun 2023 20:10 UTC

On Sat, 10 Jun 2023 19:39:12 -0000 (UTC)
Dan Purgert <dan@djph.net> wrote:

> On 2023-06-10, pinnerite wrote:
> > On Fri, 9 Jun 2023 15:37:34 -0000 (UTC)
> > Dan Purgert <dan@djph.net> wrote:
> >
> >> On 2023-06-09, pinnerite wrote:
> >> > I am trying to recover a bash script that has gone "funny".
> >> > The nub of it is this.
> >> >
> >> > Three variables are created each to receive the result of an expression.
> >> > The results are all character strings:
> >> >
> >> > first=$(an nexpression)
> >> > second=$('nother expression)
> >> > third=$(yet another expression)
> >> >
> >> > If I echo them indivually they display the desired string
> >> >
> >> > I want to "echo" them as one line with a single space character
> >> > between them like:
> >> >
> >> > $ echo $first <space> $second <space> $third
> >> >
> >> > I cannot get it to work. :(
> >> >
> >> > Alan
> >>
> >> Would be nice to see what the actual error message you were getting is,
> >> but this will probably fix it for you:
> >>
> >> $ echo "$first" "$second" "$third"
> >>
> >
> > I must apologise for not framing my question correctly.
> > What I wanted to do was to output the components that generated the
> > signature lines below to a file that could be read by sylpheed (news
> > reader). A desktop icon runs the script following a kernel upgrade.
> >
> > It works but it is ugly.
>
> So what would you rather have than this icon on your desktop?

The single line that did the same thing before it got modified (not by
me) and printed something from sed(?)

>
> forums are also back, btw -- but the interaction will be much the same,
> in that the people who'd be able to help would want to see the error
> messages and/or the script itself.
>
>
> --
> |_|O|_|
> |_|_|O| Github: https://github.com/dpurgert
> |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

--
Linux Mint 21.1 kernel version 5.15.0-73-generic Cinnamon 5.6.8

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor