LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-06-2011, 06:52 AM   #1
shashi prakash
LQ Newbie
 
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
Post shell programming


hey..i am interested in shell programming..what should i do and from where should i start ....???
 
Old 09-06-2011, 06:55 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Google, or http://tldp.org/LDP/Bash-Beginners-Guide/html/ would be good starting places
 
0 members found this post helpful.
Old 09-06-2011, 02:20 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Here are a few useful bash scripting references:
http://mywiki.wooledge.org/BashGuide
http://www.linuxcommand.org/index.php
http://mywiki.wooledge.org/BashFAQ
http://mywiki.wooledge.org/BashPitfalls
http://tldp.org/LDP/Bash-Beginners-G...tml/index.html
http://www.tldp.org/LDP/abs/html/index.html
http://www.gnu.org/software/bash/manual/bashref.html
http://wiki.bash-hackers.org/start

Start with the first link and read it all the way through. It covers all the basic concepts.

You should also learn the basics of some of the various common scripting tools, particularly sed, awk and find.

Here are a few useful sed references.
http://www.grymoire.com/Unix/Sed.html
http://sed.sourceforge.net/sedfaq.html
http://sed.sourceforge.net/sed1line.txt

Here are a few useful awk references:
http://www.grymoire.com/Unix/Awk.html
http://www.gnu.org/software/gawk/man...ode/index.html
http://www.informatik.uni-hamburg.de.../gawk_toc.html
http://www.pement.org/awk/awk1line.txt
http://www.catonmat.net/blog/awk-one...ined-part-one/

Here are a couple of useful find references:
http://mywiki.wooledge.org/UsingFind
http://www.grymoire.com/Unix/Find.html

Finally, you're going to need to understand regular expressions if you want to do anything even remotely complex:
http://www.grymoire.com/Unix/Regular.html
 
Old 09-06-2011, 03:33 PM   #4
sandwormusmc
Member
 
Registered: Nov 2006
Distribution: Fedora 15 x86_64
Posts: 76

Rep: Reputation: 24
Quote:
Originally Posted by shashi prakash View Post
hey..i am interested in shell programming..what should i do and from where should i start ....???
Find (or create) a problem, then learn how to script it. A good one to start with is creating a script that automatically applies non-kernel patches every night or so and sends you an e-mail or text message to notify you that it has done it, along with good output.

Start with that, and if you run into trouble come on back and start asking (specific, hopefully) questions.

Good luck!
 
Old 09-06-2011, 06:00 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Read other people's qns here at LQ; see how other people solve them; try to solve them yourself.
 
  


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
shell programming papseddy Programming 1 03-01-2009 03:55 PM
Shell Programming : $1 $2 .. rajesh486 Linux - Newbie 4 01-09-2009 11:23 AM

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

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