nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Learning Shell Scripting

This is a discussion on Learning Shell Scripting within the Shell scripting forums, part of the Development/Scripting category; I don't know whether I shall ask this question, but I am sure someone might be able to just help ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 26-07-2005, 12:18 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ricc
Default Learning Shell Scripting

I don't know whether I shall ask this question, but I am sure someone might be able to just help me. You know, guys, it kinda strange, I have "n" number of books but I have never been able to go thru atleast 1 chapter carefully. I really wish but am not able to concentrate. What I understood was that I am just incapable of completeing atleast 1 chapter leave alone the entire book.

Many guides, help pages, etc.. are also in my comp. Even though my wish is to learn shell scripting and then may be perl, but I am just unable to concentrate.

I would really appreciate if someone can, atleast help me learn shell scripting by giving a lesson a day or a job a day kind of thing which I think will be better to tackle, than the boring and rather out of the way technical books which drill down us and think that we complete reading the book cover to cover.

I sincerely would like to learn shell if not master it. but I just kinda can't follow the books and guides from all the various sites that try to teach shell scripting.

I just hope, some helpful soul can infact help me.

Thanks, Thanks in advance to the helpful soul who can help me.

ricc
Reply With Quote
  #2 (permalink)  
Old 26-07-2005, 11:05 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

Hee

You are not the first person to come across such situation. Sure we can suggest you the some ideas or may be write a script and so on... currently you are at what level in shell scripting?

Okay try to write shell script which creates the progress indicator like; any time that a user is forced to wait as a long process runs, it is good idea to give the user feddback. Write script for this purpose

Reply back so we can share more ideas.
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #3 (permalink)  
Old 27-07-2005, 02:09 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
ricc
Default

O...great. Thank you for the response. I would love to write such a script. But don't know which commands to use. Just tell me which are the commands to be folllowed and I will try my best to put them in and you can review them whetehr I have gone wrong or not.

Thanks again for your words of encouragement. I just need friends like you to help me go thru it.

See you,

ricc
Reply With Quote
  #4 (permalink)  
Old 27-07-2005, 05:09 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

You need to use while or for loop to create progress indicator

Code:
While job is not done
do
   print progrss
   do a job
   sleep if required
   increment the counter
done
Note above is not code but steps you needed, now start coding oh yah read the man bash for while loop if you are new...
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #5 (permalink)  
Old 30-08-2005, 09:37 AM
guest
Guest
 
Posts: n/a
Default learning shell script

i just went through http://www.freeos.com/guides/lsst/index.html and it was a good starting. It is very good for starters. and a good tutorial by vivek
Reply With Quote
  #6 (permalink)  
Old 02-04-2009, 03:11 PM
Junior Member
User
 
Join Date: Apr 2009
OS: Debian
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Tanmaya is on a distinguished road
Default Linux shell scripting

Same problem here... It's an old post, but I thought to drop a line.

I will suggest creating some problems for yourself and then solving it with some solved examples in your armory. During the phase when you will try hard to solve, read the theories/tutorials to give yourself a base.

It worked for me. But you need to find a way which you think is the best.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
need help on shell scripting rahul_sayz Shell scripting 1 08-12-2007 10:37 AM
shell scripting + send mail with header ephdia Shell scripting 0 27-11-2007 11:29 AM
shell scripting by todd meadors bashamsc Shell scripting 2 12-11-2007 06:28 PM
looking for good shell scripting tutorial.... milonix Shell scripting 4 24-04-2007 06:44 AM
Books on Shell-Scripting shankar100 Shell scripting 3 16-02-2007 01:19 PM


All times are GMT +5.5. The time now is 07:36 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38