LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-20-2012, 08:46 PM   #1
spaghettios
LQ Newbie
 
Registered: Jul 2012
Location: UK
Distribution: Ubuntu, Slackware
Posts: 28

Rep: Reputation: Disabled
Realistic Goals for newbie


Hi, I am a total newbie. I have about 20hrs spread over 2 weeks which i'm going to throw at trying to learn bash scripting, which someone helped me use on a previous project (they wrote it, i hit enter). I have no idea about the language's power or capabilities, could someone give me ideas for projects which should be achievable by the end of this, so that i can put my understanding to the test. I don't think following someone else's tutorial would be an equally legitimate test. Assume no prior programming experience.
 
Old 07-20-2012, 09:21 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Start by reading these two bash scripting guides:
Bash beginners guide
Advanced bash scripting guide

Then set yourself a task. Take something that you do repeatedly, which has more that one step, but is a bit tedious. A script will relieve you of that tedium by allowing you to complete the task with one step: running the script.

Example:
You have you your home directory a number of caches: browser cache, thumbnails, etc. which will continue to accumulate files until you clean them out. A simple script to cd from directory to directory to rm the files will save you some time.

Then increase the complexity. Add a function to check the directory to see if it's empty before running the rm command. If empty, bypass the command, otherwise run rm to remove the files.

Scripts save time when doing *housekeeping* chores, but can do much more. Just look at the scripts in /etc/init.d.
 
Old 07-20-2012, 09:22 PM   #3
MisterBark
Member
 
Registered: Jul 2012
Location: Republic of Krakozhia
Distribution: Slackware & Zenwalk core + compile
Posts: 104

Rep: Reputation: 6
From my experience, you learn better when you focus on the goal, not on the learning...

The question is: what are the first things you want to achieve with your Linux?
 
Old 07-22-2012, 04:16 AM   #4
spaghettios
LQ Newbie
 
Registered: Jul 2012
Location: UK
Distribution: Ubuntu, Slackware
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thanks for those links, the material looks very digestible for my time horizon.

I agree, i would usually focus on the task rather than the process of learning, but in this instance i just didn't have an idea of what i could do with it.
 
Old 07-22-2012, 07:14 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,360

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Those 2 links in post#2 definitely show you just about everything in pure bash, with examples
This is also a very good cli tutorial; a bit more task oriented http://rute.2038bug.com/index.html.gz

Here's a good link to some of the power tools like awk, sed & find, which you will see mentioned a fair bit http://www.grymoire.com/Unix/

Good Luck & Welcome to LQ
 
  


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
Realistic expectations. teek5449 Linux - Newbie 5 12-31-2009 10:25 AM
is RHCE via self training realistic? walterbyrd Linux - Certification 9 09-01-2008 09:39 AM
Linux 'Newbie' with goals... ;-) mcle LinuxQuestions.org Member Intro 2 12-03-2004 09:47 AM
idea for program, but is it realistic? charlie123 Programming 4 01-20-2003 08:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:45 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