Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #59870 > unrolled thread

Bash topics (Memory Usage)

Started bySoviet_Mario <SovietMario@CCCP.MIR>
First post2019-10-19 10:58 +0200
Last post2019-10-20 22:03 -0400
Articles 4 on this page of 24 — 10 participants

Back to article view | Back to alt.os.linux


Contents

  Bash topics (Memory Usage) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-19 10:58 +0200
    Re: Bash topics (Memory Usage) Dan Purgert <dan@djph.net> - 2019-10-19 13:15 +0000
      Re: Bash topics (Memory Usage) Aragorn <thorongil@telenet.be> - 2019-10-19 15:44 +0200
        Re: Bash topics (Memory Usage) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-20 01:15 +0200
          Re: Bash topics (Memory Usage) Dan Purgert <dan@djph.net> - 2019-10-19 23:25 +0000
          Re: Bash topics (Memory Usage) Aragorn <thorongil@telenet.be> - 2019-10-20 12:33 +0200
            Re: Bash topics (Memory Usage) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-20 13:39 +0200
              Re: Bash topics (Memory Usage) Aragorn <thorongil@telenet.be> - 2019-10-20 16:19 +0200
                Re: Bash topics (Memory Usage) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-20 21:08 +0200
                  Re: Bash topics (Memory Usage) Aragorn <thorongil@telenet.be> - 2019-10-20 21:51 +0200
                    Re: Bash topics (Memory Usage) "Carlos E.R." <robin_listas@es.invalid> - 2019-10-20 22:12 +0200
      Re: Bash topics (Memory Usage) John Hasler <jhasler@newsguy.com> - 2019-10-19 12:33 -0500
    Re: Bash topics (Memory Usage) William Unruh <unruh@invalid.ca> - 2019-10-19 21:26 +0000
      Linux users who buttfuck the president... Idaho Homo Joe <dick_lick@aol.com> - 2019-10-19 21:47 -0400
      Re: Bash topics (Memory Usage) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-20 15:19 +0200
        Re: Bash topics (Memory Usage) Dan Purgert <dan@djph.net> - 2019-10-20 13:54 +0000
        Re: Bash topics (Memory Usage) Richard Kettlewell <invalid@invalid.invalid> - 2019-10-20 15:29 +0100
          Re: Bash topics (Memory Usage) William Unruh <unruh@invalid.ca> - 2019-10-20 19:24 +0000
            Re: Bash topics (Memory Usage) Richard Kettlewell <invalid@invalid.invalid> - 2019-10-21 10:28 +0100
        Re: Bash topics (Memory Usage) Chris <ithinkiam@gmail.com> - 2019-10-20 15:36 +0100
        Re: Bash topics (Memory Usage) Paul <nospam@needed.invalid> - 2019-10-20 11:05 -0400
          Re: Bash topics (Memory Usage) Soviet_Mario <SovietMario@CCCP.MIR> - 2019-10-20 23:14 +0200
            Re: Bash topics (Memory Usage) John Hasler <jhasler@newsguy.com> - 2019-10-20 18:01 -0500
              Re: Bash topics (Memory Usage) Paul <nospam@needed.invalid> - 2019-10-20 22:03 -0400

Page 2 of 2 — ← Prev page 1 [2]


#59931

FromPaul <nospam@needed.invalid>
Date2019-10-20 11:05 -0400
Message-ID<qoht2t$1co$1@dont-email.me>
In reply to#59925
Soviet_Mario wrote:
> On 19/10/2019 23:26, William Unruh wrote:
>> It is a "progamming" language, and a scripting language. It is however
>> slow and tends to rely on other programs to accomplish its tasks.
>>
>> But why do you care what it is called? 
> 
> no, I'm "caring" about its nature to try to understand WHY with this 
> language and not others I cannot get anything done.
> I mean, I self-taught basic, C, to a lesser extent C++, Pascal (and long 
> ago somewhat Fortran 77, but I HATED IT ... never the less I understood 
> it), but I absolutely cannot oriend in BASH. I just don't understand the 
> logic, the philosopy underlying.
> 

Find some "one page recipes".

https://steve-parker.org/sh/cheatsheet.pdf

http://tldp.org/LDP/Bash-Beginners-Guide/html/x7369.html

And the other thing that helps, is to find some really large
example scripts, because they will teach you how an expert
structures a large script. There are way too many five line
Bash scripts on the Internet, and they won't teach you anything.

Here is an example of abusing Bash as a general programming language.

https://rosettacode.org/wiki/N-queens_problem#UNIX_Shell

    Paul

[toc] | [prev] | [next] | [standalone]


#59956

FromSoviet_Mario <SovietMario@CCCP.MIR>
Date2019-10-20 23:14 +0200
Message-ID<qoiinc$fq2$1@dont-email.me>
In reply to#59931
Il 20/10/19 17:05, Paul ha scritto:
> Soviet_Mario wrote:
>> On 19/10/2019 23:26, William Unruh wrote:
>>> It is a "progamming" language, and a scripting language. 
>>> It is however
>>> slow and tends to rely on other programs to accomplish 
>>> its tasks.
>>>
>>> But why do you care what it is called? 
>>
>> no, I'm "caring" about its nature to try to understand WHY 
>> with this language and not others I cannot get anything done.
>> I mean, I self-taught basic, C, to a lesser extent C++, 
>> Pascal (and long ago somewhat Fortran 77, but I HATED IT 
>> ... never the less I understood it), but I absolutely 
>> cannot oriend in BASH. I just don't understand the logic, 
>> the philosopy underlying.
>>
> 
> Find some "one page recipes".
> 
> https://steve-parker.org/sh/cheatsheet.pdf
> 
> http://tldp.org/LDP/Bash-Beginners-Guide/html/x7369.html

very valuable links ...

> 
> And the other thing that helps, is to find some really large
> example scripts, because they will teach you how an expert
> structures a large script. There are way too many five line
> Bash scripts on the Internet, and they won't teach you 
> anything.

> 
> Here is an example of abusing Bash as a general programming 
> language.
> 
> https://rosettacode.org/wiki/N-queens_problem#UNIX_Shell
> 
>     Paul

I'm scared to even have a look :) But I'll do

-- 
1) Resistere, resistere, resistere.
2) Se tutti pagano le tasse, le tasse le pagano tutti
Soviet_Mario - (aka Gatto_Vizzato)

[toc] | [prev] | [next] | [standalone]


#59960

FromJohn Hasler <jhasler@newsguy.com>
Date2019-10-20 18:01 -0500
Message-ID<87tv839g37.fsf@dhh.gt.org>
In reply to#59956
Paul writes:
> And the other thing that helps, is to find some really large example
> scripts, because they will teach you how an expert structures a large
> script.

There shouldn't be any.  Five liners is what Bash is for.
-- 
John "Once wrote a 1000 line shell script" Hasler 
jhasler@newsguy.com
Dancing Horse Hill
Elmwood, WI USA

[toc] | [prev] | [next] | [standalone]


#59965

FromPaul <nospam@needed.invalid>
Date2019-10-20 22:03 -0400
Message-ID<qoj3kt$8g0$1@dont-email.me>
In reply to#59960
John Hasler wrote:
> Paul writes:
>> And the other thing that helps, is to find some really large example
>> scripts, because they will teach you how an expert structures a large
>> script.
> 
> There shouldn't be any.  Five liners is what Bash is for.

I got an excellent example script.

Around 2000 lines, with all sorts of helper routines for
installing software on Unix boxes. It was proprietary software,
that I used occasionally for similar tasks on my own machine.

I referred to that sample a number of times, when
I wanted to understand how a real scripter thinks.

The danger with the five line scripts, is they're
written by beginners like me :-)

There can also be a myriad of escape sequences for
computer languages, and you might need a separate webpage
to help you with those. How many backslashes or forward slashes
can you put in a row ? How do you quote a quotation mark ?
There are always things like that which you need to understand,
and the solution may be context sensitive. The five line
sample scripts live in some ideal world without spaces in
pathnames and the like.

    Paul

[toc] | [prev] | [standalone]


Page 2 of 2 — ← Prev page 1 [2]

Back to top | Article view | alt.os.linux


csiph-web