LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2016, 04:39 AM   #1
platypo
Member
 
Registered: Sep 2015
Distribution: Debian, Archlinux
Posts: 140

Rep: Reputation: Disabled
Bash Guide for Beginners - solutions?


Hello!

I'm trying to improve in bash scripting so i've started with this Guide wich is very good to learn with btw.

Every chapter concludes a few exercises wich are easily done in Terminal.
When it comes to solutions web search finds a few matches eventually but i couldn't find a complete solution wich would be handy in some cases.

Does anyone know if there are complete solutions to this guide and where they are found?

Or would you recommend a different toturial?
 
Old 02-18-2016, 05:23 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,285

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
If you have sysinit, and not systemd, there's a bundle of scripts in /etc/rc.d/init.d/ or some nearby place. There's also a bundle in /etc/acpi & /etc/acpi/events, and you'll get neat working scripts on your own box that have comments in line. Then get adventurous
Code:
cd /usr/bin # or any binary dir 
file * |egrep 'shell script'
You'll find all the shell scripts your box runs on. They work - all of them.
 
Old 02-18-2016, 08:36 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
I've found This guide on advanced bash scripting to be helpful and it does show clips or examples, not always fully done up scripts, but instead sections to cite the points that are trying to be made.

I think you have the basic guide which I include in my signature. I also wrote a blog entry, see signature, about debugging bash scripts. You might like some of the ideas in there.

Also check out LQ Addict Habitual's Blog of Links there's a BASH links section.
 
1 members found this post helpful.
Old 02-18-2016, 09:05 AM   #4
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,006

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
http://mywiki.wooledge.org/TitleIndex

This would be my go to for learning all the extra bits about bash programming
 
Old 02-18-2016, 09:26 AM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Years ago, I made Google Custom Search Engine scanning 44+ Linux-specific sites for bash code and snippets.
Bash Scripting Search

Have Fun.
 
Old 02-18-2016, 09:26 AM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
n/m - damn cache.

Last edited by Habitual; 02-18-2016 at 11:18 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for a bash for absolute beginners guide dasy2k1 Linux - Newbie 8 11-11-2016 12:50 PM
Quick guide for beginners. zk1234 4MLinux 8 09-09-2015 03:19 PM
LXer: Bash If statements, Exit Status and Comparison Operators, A beginners guide to bash scripting LXer Syndicated Linux News 0 06-29-2014 07:35 PM
Beginners guide for asterisk Evangelin Linux - Newbie 2 12-30-2009 07:02 PM
DTFM: Discuss The Friendly Manual -- Bash-Beginners-Guide bartonski General 6 10-20-2009 08:22 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration