This is a discussion on Shell script needed within the Shell scripting forums, part of the Development/Scripting category; Hello folks, I am a beginner and this is the first time I have started learning how to deal with ...
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
|||
|
Hello folks,
I am a beginner and this is the first time I have started learning how to deal with Unix based operating system and shell programming, I have a doubt as to how to write a pretty simple shell program, it is very simple for someone who knows shell programming and isn't that simple for the one who doesn't know much about it. I hope some of the members here help me with either providing references or providing me hints as to how to write the code. Here is the question: Write a shell script (bash or sh) that prints out the following lines/information:
|
| Sponsored Links | ||
|
|
|
|||
|
FWIW, and this may not apply to you but, homework assignments usually aren't given to make you Bash your head against the wall so to speak but to practice things you learnt, so if this is one of those assignments you might want to read back what's been talked about. You could start by reading some tutorials and walkthroughs like BASH Programming - Introduction HOW-TO, http://www.tldp.org/LDP/Bash-Beginne...tml/index.html and the Linux Shell Scripting Tutorial - A Beginner's handbook. Once you've read that you could try looking at some scripts here: Bash Shell Scripting Directory For Linux / UNIX and see if you can understand what they're doing.
|
|
||||
|
yup, follow all those guides provided by unSpawn.
There is a sample script below in form of functions: BASH Shell script Common functions library, it includes lots of day-today-life subroutine |
![]() |
| Bookmarks |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to initialize HDD using Shell script? | meimei | Shell scripting | 1 | 05-13-2008 05:21 PM |
| Run mv command from ftp shell script | subin | Shell scripting | 6 | 05-02-2008 09:44 AM |
| shell script for ftp the file | vishal_titre | Shell scripting | 3 | 12-10-2007 08:40 AM |
| writing a shell script to find out my shell name | jaymob123 | Shell scripting | 1 | 10-08-2007 12:36 AM |
| require shell script | puppen | Shell scripting | 4 | 04-12-2006 09:42 PM |