different kinds of shells


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting different kinds of shells
# 1  
Old 02-28-2008
different kinds of shells

Can anyone tell me about the classification and significance of variuos unix shells and why is only sh used for most shell scripting?
# 2  
Old 02-28-2008
this and this would be useful for you
# 3  
Old 02-28-2008
PHP i need help with pleaseeeeeeeee anyone

Write a single bash shell script which does the following:
1. It accepts a single argument which can be either the string toupper or
the string tolower. If the argument given by the user is toupper, the script
will convert all of the names of the regular files (not directories) in the
current directory to uppercase. Thus, file file.txt will become FILE.TXT, file
Report.doc will become REPORT.DOC, etc.
If the argument provided to the script is the string tolower, the files in the
current directory will be renamed to the equivalent lower case ones. For
example, Report.doc will become report.doc, etc. If the script is given no
argument, then it will not try to rename any of the files in the current
directory.
(marks 30%).
2. The files in the current directory (whether their name has changed or not
in part 1), are moved to appropriate subdirectories, where the name of the
appropriate subdirectory is the extension of the file being moved. For
example, files report1.doc, report2.doc will be moved to a subdirectory
doc, with the names REPORT1.DOC, REPORT2.DOC (assuming the
script was called with the string toupper as argument.)
If the directory does not exist, it will be created by the script. If a file does
not have an extension it will not be moved to a subdirectory.
(marks 35%).
3. There is a possibility that when a file is moved to the appropriate
subdirectory, the subdirectory already contains a file with an identical
name. Modify the script so that if such a file already exists, the moved file
will be renamed by appending the number 1 (or the next unique integer) to
it. For example, if REPORT.DOC is moved to subdirectory doc, but there is
already a file REPORT.DOC inside doc, then the moved file will be
renamed as REPORT.DOC1. If a file REPORT.DOC1 already exists inside
doc, then the moved file will be renamed as REPORT.DOC2, and so on.
# 4  
Old 02-28-2008
marriya,

Do not hijack a thread. Also no homework/classwork questions. That is against the rules. Closing this thread.

gurujoe, if you have any further questions related to your original post, please start a new thread.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Please what are shells?

I mean like this: http://shells.red-pill.eu/ Can anyone explain how this works? I hope my post is not spam. I think its related to linux. Thank you (1 Reply)
Discussion started by: postcd
1 Replies

2. UNIX for Dummies Questions & Answers

Shells

Lets say my default shell is bash and then i load up csh and then ksh. How would i exit csh without exiting ksh? so basically i gone from bash > csh > ksh and i wish to close csh (2 Replies)
Discussion started by: Bill Thompson
2 Replies

3. Shell Programming and Scripting

Differences between shells

What is the practical difference among the different shell like csh , ksh , bash etc.:confused::confused: Please use descriptive subjects instead of single words (2 Replies)
Discussion started by: hiten.r.chauhan
2 Replies

4. UNIX for Advanced & Expert Users

why we have different shells?

Can you pls. tell me, why we have different shells in UNIX OS ( Eg. SunOs) and also I would like to know what is the specific difference b/w SVR and BSD ? Thanks. (2 Replies)
Discussion started by: shahnazurs
2 Replies

5. Shell Programming and Scripting

Different type of shells?

Hello there, i just want to know what are the different type of shells and the main difference betwee them. The problem is that if you try to search over the net you will find a lot of information and hence you will have no enough time to read all of them.....Anyone can help with this?? (1 Reply)
Discussion started by: charbel
1 Replies

6. UNIX for Advanced & Expert Users

Shells

I have came across the definitions of these shells korn bourne c etc .. but honestly till now i din't get the exact difference between these threes , the advantages ..... can anyone pinpoint me where it actually lies ..... don;t include me answers like aliasing in c is posible and not in bourne ..... (3 Replies)
Discussion started by: dino_leix
3 Replies

7. Programming

How many kinds of IPC are there in FREEBSD?

How many kinds of IPC are there in FREEBSD? (1 Reply)
Discussion started by: cantona
1 Replies
Login or Register to Ask a Question