nixCraft Linux Forum

nixCraft

Linux 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

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-26-2005, 01:18 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
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
Sponsored Links
  #2 (permalink)  
Old 07-27-2005, 12:05 AM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
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.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #3 (permalink)  
Old 07-27-2005, 03:09 PM
Member
User
 
Join Date: Jul 2005
Posts: 85
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 07-27-2005, 06:09 PM
rockdalinux's Avatar
Contributors
User
 
Join Date: May 2005
Location: Bangalore
My distro: RHEL, HP-UX, Solaris, FreeBSD, Ubuntu
Posts: 581
Rep Power: 7
rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough rockdalinux is a jewel in the rough
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.
You may have my body & soul, but you will never touch my pride!

If you have knowledge, let others light their candles at it.

Certified to work on HP-UX / Sun Solaris / RedHat
Reply With Quote
  #5 (permalink)  
Old 08-30-2005, 10: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
Reply

Bookmarks


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 On

Similar Threads

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


All times are GMT +5.5. The time now is 02:13 AM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

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