LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 07: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, 07:55 AM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Location: Wales, UK
Distribution: Arch
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 345Reputation: 345Reputation: 345Reputation: 345
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, 03:20 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958
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, 04: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, 07:00 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,247

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:55 PM
Shell Programming : $1 $2 .. rajesh486 Linux - Newbie 4 01-09-2009 12:23 PM


All times are GMT -5. The time now is 06:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration