11-04-2004
according to the book so far!
i think you forgot :: after the first done.. the usual syntax for case
case in
1)
::
2)
::
esac
the script is basically a perfect example of how a script should be written according to the books that I have read.. I would go into more detail but I had the most fun figuring out my first shell scripts doing it by myself.. unless I was really 100% stuck.. I would say try and figure out the mistake if there is one by yourself and keep in mind that this is a good script
have fun
moxxx68
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Just want to know a few conversion tricks.
in Borne Shell, I have the line:
if test -s testmap
then
...
fi
## testmap is a filename and I wanna test whether it exists
## then do whatever
How can I convert that to C Shell?
I've tried:
if (test -s testmap) then
...
endif
but it... (3 Replies)
Discussion started by: zenkisoft
3 Replies
2. Shell Programming and Scripting
Now, am in a very tight situation here. I really dont expect anyone to understand but please, try your best.
am trying to right a program that goes back to the previous entry to correct a mistake.
heres what am trying to do. i write a program like this
Name : James Holgston... (1 Reply)
Discussion started by: TRUEST
1 Replies
3. Shell Programming and Scripting
Hello -
I've serached the web but can't find much on array script variables (except that C-shell variables are arrays!)
I'm trying to form a 2-D string array: (this is what I want, but in java)
String list = { {"one", "two"}, {"three"} };
I know this is a 1-D string array shell... (4 Replies)
Discussion started by: jparker
4 Replies
4. Shell Programming and Scripting
I need to perform two separate commands as part of the -exec section of a find command. Is this possible? (1 Reply)
Discussion started by: marshaferry
1 Replies
5. Shell Programming and Scripting
Hi experts,
I am new bee in unix programming. How to differenciate a Borne and C shell programming. Can i write a C shell syntax in Borne again shell.
Please send me the good links on Borne and Cshell programming . Any help in this regard will be highly appreciated.
Regards,
Azaz. (3 Replies)
Discussion started by: azazalis
3 Replies
6. Shell Programming and Scripting
in the beginners book i have it gives an exercise to try. saying to make a script that examines the time. it should keep examining every second or so and say some sort of message. Can anyone help me get going.
Thanks (3 Replies)
Discussion started by: bebop1111116
3 Replies
7. UNIX for Dummies Questions & Answers
I need anwser to this qestion!
I havewirte a script that
provides line numbered contents of a file
which must make use of the following
control structures
files
Command line arguments
I am a complete new commer to unix and bourne shell scripting
can any one help (1 Reply)
Discussion started by: migg-21
1 Replies
8. Shell Programming and Scripting
Hi all,
I am trying to get a file from an ftp server and i have the list of files which needs to be get from the ftp server.
grep unix_prg*.* log.txt > log1.txt
log1.txt (which has the list of files)
06-29-09 00:00AM 3550258 unix_prg090629
06-28-09 07:00PM ... (7 Replies)
Discussion started by: raghav1982
7 Replies
9. Shell Programming and Scripting
I have a code:
if
then#{ process daily files
for file in *_${Today}*.csv *_${Today}*.txt
do
if ||
then
echo "This file will be processed in separate script"
continue
fi
if ;then
... (2 Replies)
Discussion started by: digioleg54
2 Replies
10. Homework & Coursework Questions
1. I've have to write a shell program that accepts Ctrl+T (in linux os in c language) and should print out the current time and date to the screen. I've written the following code but i've to type ^T individual rather than pressing ctrl+T(^T) to get the output. :
2. How do i make the shell... (2 Replies)
Discussion started by: zorro_phu
2 Replies