Advanced Bash Scripting Guide v10.0

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

Advanced Bash Scripting Guide v10.0

#1 Post by don570 »

I have improved on tuuxxx's version of Advanced Bash Scripting.

This is March 2014 version.

DOWNLOAD bash advanced guide-10.0.pet
Size 867kb
https://drive.google.com/open?id=1F5vJx ... iBrxhX_tM1


I put the reference card in the menu as well. It will display next to the
text editors.

Edit: I have a new reference card written by aragon (updated by me)

Edit: Updated to version 6.6

Edit: Added a widget lexicon by Thunor and some links to advice
by Barry Kauler in version f

Checked with Precise Puppy. Should work in other Puppies.
For some odd reason it wouldn't show in start menu for Slacko :cry:
Edit: with newest Slacko , I was able to make it show in menu by
typing 'fixmenus' in the terminal after installing pet package


Here's how your start menu will look ...

Image

____________________________________________________
Last edited by don570 on Thu 30 Jan 2020, 22:37, edited 19 times in total.

User avatar
GustavoYz
Posts: 883
Joined: Wed 07 Jul 2010, 05:11
Location: .ar

#2 Post by GustavoYz »

Amazing, thanks.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#3 Post by don570 »

Upgraded to version 6.6 of bash guide

-I changed the desktop files slightly for German and French

__________________________________

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#4 Post by Flash »

1.4 MB is less than half the size of the original pdf file, and I see that it includes a tremendous number of examples. Excellent. :)

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#5 Post by don570 »

There is an alternate reference card that I will put in package
in the future

http://www.murga-linux.com/puppy/viewtopic.php?t=46435

Image

_________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#6 Post by don570 »

New version 6.6b


I have switched to a new reference card (first written by aragon several
years ago) that is very useful for inexperienced puppy users!!!

The old reference card is a page in the manual by Cooper.

Note: If you are using Slacko and the package entries won't appear
in the Start menu then try typing 'fixmenus' in terminal.
____________________________________________________

__________________________________________________

Dud
Posts: 59
Joined: Sat 04 Jun 2011, 18:17

#7 Post by Dud »

Precise 5.4.1

No menu entry and fixmenus didn't.

You might like to double check the new reference card, for eg. see the entry on 'touch'.

Cheerio,

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#8 Post by don570 »

I tested only on Precise 5.4.2 since I find Precise buggy. There were some big problems
with PPM that have now been
fixed.

The desktop file would be changed by PPM. The category would
be wrong so the 'fixmenus' trick won't work. :cry:
___________________________________________________

The card is two years old so any suggestions for changes I would welcome.
I'll take a closer look over the weekend.
______________________________________________

Dud
Posts: 59
Joined: Sat 04 Jun 2011, 18:17

#9 Post by Dud »

<Tips Hat>

Thanks for the nudge to upgrade. It does indeed work fine in 5.4.2

Cheerio,

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#10 Post by don570 »

see the entry on 'touch'.
What's wrong with 'touch FILE' ???

There may be a couple of entries that don't apply to
every puppy variant (like how to print the name window manager)

________________________________
Last edited by don570 on Mon 10 Dec 2012, 20:15, edited 1 time in total.

User avatar
pemasu
Posts: 5474
Joined: Wed 08 Jul 2009, 12:26
Location: Finland

#11 Post by pemasu »

man touch and touch --help gives restricted picture of usage of touch as easy way to create blank file. They does not even straight tell that you can create a blank file with touch command.

http://www.linfo.org/touch.html
is much more better for the usage of touch.

I think that the reference card info: create FILE is good, since it tells the most practical usage for touch....which has been stripped from man touch and from touch --help.

touch(1) - Linux man page
Name
touch - change file timestamps

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#12 Post by jpeps »

pemasu wrote:
I think that the reference card info: create FILE is good, since it tells the most practical usage for touch....which has been stripped from man touch and from touch --help.
What's wrong with touch --help? My copy is the same as the die.net

oh--I see what you're saying. You like the descriptions better.

Dud
Posts: 59
Joined: Sat 04 Jun 2011, 18:17

#13 Post by Dud »

Whereas my main use for touch is to haul files which might otherwise be excluded into range of incremental backups - sometimes it's useful to tar a copy of some of the setup files along with the changes.

Cheerio,

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#14 Post by don570 »

new version 6.6c

-I put a reference to compression of a folder in the
reference card.

tar cvxf folder.tar.gz Folder

Very useful for users to know :wink:

__________________________________________
Last edited by don570 on Mon 17 Dec 2012, 22:47, edited 1 time in total.

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#15 Post by don570 »

new version 6.6d

-I put a gtk icon list to the start menu.
Very useful for programmers.
Here's what it looks like ...

Image

__________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#16 Post by don570 »

new version f

Lots more script examples by Thunor.

Added a widget lexicon by Thunor and some links
by Barry Kauler in version f

_________________________________________

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#17 Post by don570 »

New version 6.6g

-I updated examples by Thunor

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#18 Post by ASRI éducation »

@ don570
I just tried your package.
This is awesome!
Thank you.

popov
Posts: 45
Joined: Sat 30 Mar 2013, 22:49

#19 Post by popov »

seems that download link is broken, posts : an error occured

User avatar
ASRI éducation
Posts: 3197
Joined: Sat 09 May 2009, 12:10
Location: France
Contact:

#20 Post by ASRI éducation »

popov wrote:seems that download link is broken, posts : an error occured
I have the same problem.

Post Reply