Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 04-01-2010, 04:58 PM   #1
LQ Newbie
Registered: Mar 2010
Posts: 1
Blog Entries: 2

Rep: Reputation: 0
shell script reads all file names passed on the command line


I want your help in the following shell script

Write a shell script (named that reads all file names passed on the command line and –depending on the option that is used- write the files names out in all uppercase letter (if the option is –u), write the files names out in all lowercase letter (if the option is –l) or prints the contents of files on the screen (if the option is –p).
Remark: Implement this shell using your own function upper(), lower() and print().

awaiting to hear from you

Old 04-01-2010, 05:01 PM   #2
LQ Guru
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Hello and welcome to LinuxQuestions,

This question sounds a lot like homework. If it is, then you'll probably get very little response to it, since the rules indicate that LQ users are reluctant to do your homework for you. You'll learn a lot more doing/trying yourself.

On the other hand, if you post what you have done and where it fails, then I'm sure someone will point you in the right direction and/or indicate your errors.

Kind regards,



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script that reads from parameters file carters2 Linux - Newbie 4 11-04-2009 09:24 AM
shell script read line from file, use it in command DiGiGoth Programming 5 08-31-2008 12:08 PM
command or shell script to print line range from file minil Programming 3 12-28-2005 09:05 AM
bash:output file names from shell script to vi sickboy Linux - Newbie 6 10-14-2004 04:40 AM

All times are GMT -5. The time now is 08:12 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration