06-13-2018, 02:00 PM
09-12-2018, 08:38 PM
I am learning to use bash.
09-13-2018, 10:06 PM
(09-12-2018, 08:38 PM)bitsnpcs link Wrote: [ -> ]I am learning to use bash.
GZ man, and Vera too, of course!
Shell scripting is the most powerful tool to use. And a child can learn it (with the time they use in
all those 'social media' sites).
Ps.
To Vera: I begin the scripts with
#!/bin/bash
# explicitely, because bash is the best shell but it is not the default shell in LL
09-13-2018, 11:07 PM
(09-13-2018, 10:06 PM)kpanic link Wrote: [ -> ][quote author=bitsnpcs link=topic=5568.msg43098#msg43098 date=1536784704]
I am learning to use bash.
GZ woman, and Vera too, of course!
Shell scripting is the most powerful tool to use. And a child can learn it (with the time they use in
all those 'social media' sites).
Ps.
To Vera: I begin the scripts with
#!/bin/bash
# explicitely, because bash is the best shell but it is not the default shell in LL
[/quote]
09-14-2018, 11:15 AM
There is some scripting at the end of the Linux Command Line book I use, I am not anywhere near the end yet, as I learn slowly and stop start when disrupted for long periods at a time.
I also learn from Linux Bible, need to fix virtualbox before can carry on with that. Just havent been motivated to do so yet.
After these books I have the one to start titled, Linux Command Line and Shell Scripting Bible.
Hopefully in some future year when/if I manage to complete those I will have a basic foundation to progress from.
I use social sites such as this forum, and YouTube for music.
Is it like the shebang ?
I used in the first Python apps I made so they execute
I also learn from Linux Bible, need to fix virtualbox before can carry on with that. Just havent been motivated to do so yet.
After these books I have the one to start titled, Linux Command Line and Shell Scripting Bible.
Hopefully in some future year when/if I manage to complete those I will have a basic foundation to progress from.
I use social sites such as this forum, and YouTube for music.
Is it like the shebang ?
Code:
#!/usr/bin/env python
I used in the first Python apps I made so they execute
09-15-2018, 03:12 AM
Quote:explicitely, because bash is the best shell but it is not the default shell in LL
[member=7701]kpanic[/member]
To stablish bash as your default shell you can use the cat and chsh commands. First, in your terminal type
Code:
$ cat /etc/shells
This will list all available/installed shells in your system, then use chsh to change to a different shell, say bash.
Code:
$ chsh -s /usr/bash
it will ask for your password, type it in, logout/login, open a terminal, type
Code:
$ echo $Shell
![[Image: 20fqgrn.jpg]](http://i65.tinypic.com/20fqgrn.jpg)
![[Image: 11sh4lf.jpg]](http://i64.tinypic.com/11sh4lf.jpg)
[member=411]bitsnpcs[/member] there's a very good book you might find quite helpful; The Linux Shell Scripting Cookbook. You can grab it here: https://gutl.jovenclub.cu/wp-content/upl...okbook.pdf
09-15-2018, 07:15 AM
(09-15-2018, 03:12 AM)Moltke link Wrote: [ -> ][member=411]bitsnpcs[/member] there's a very good book you might find quite helpful; The Linux Shell Scripting Cookbook. You can grab it here: https://gutl.jovenclub.cu/wp-content/upl...okbook.pdf
[member=7109]Moltke[/member] Thank You, I've grabbed it and will work through it

I have done the first example in book
![[Image: Screenshot_2018_09_15_09_21_11.png]](https://preview.ibb.co/erAfRe/Screenshot_2018_09_15_09_21_11.png)
I like it 8) do you want to make a thread for this book [member=7109]Moltke[/member] ?
I had a play with the options at end of the section, and some trial/error spacing, I wasn't able to get Name and Mark in to the centre of their color blocks yet, also had to copy/paste the name character as wasn't sure how to do it in terminal -
![[Image: Screenshot_2018_09_15_12_41_58.png]](https://preview.ibb.co/jEhuKz/Screenshot_2018_09_15_12_41_58.png)
09-15-2018, 01:51 PM
Quote:I like it 8) do you want to make a thread for this book [member=7109]Moltke[/member]?
[member=411]bitsnpcs[/member] I'd love to!

BTW, I just noticed there's a revisited third edition of the book published last year, the one you and I have is the second one. I don't know what the differences might be, if any though, but you can grab it here: https://coderprog.com/linux-shell-script...kbook-3rd/
Also, I found this other one and it lloks quite interesting https://www.pdfdrive.com/pro-bash-progra...88064.html
09-15-2018, 02:37 PM
[member=7109]Moltke[/member] that will be great 8) , I understand about your connection at the moment.
Thank you for the links.
It appears the third version has lots of empty space, maybe missing images. Example in Second edition I am on page 32, this is spread out and up to page 106 in the third edition.
I'll work through the pro bash book too, it does look interesting as well.
Thank you for the links.

It appears the third version has lots of empty space, maybe missing images. Example in Second edition I am on page 32, this is spread out and up to page 106 in the third edition.
I'll work through the pro bash book too, it does look interesting as well.
09-16-2018, 02:47 PM
Quote:It appears the third version has lots of empty space, maybe missing images
[member=411]bitsnpcs[/member] yes, you're right. I noticed that too. Anyway, it doesn't seem to be too many changes from the second edition, so I guess we're good using that one. ;D
I just found this https://bash.cyberciti.biz/guide/Main_Page it has several examples and explanatios are quite clear. I think it's a good resource for learning scripting and bash. Hope you like it.

cheers!