question in shell script
I need a little help to solve this question
Write a Bourne shell script which:
• Has one command line argument.
• If the command line argument is a directory then the script should output the number of files in the directory.
• If the command line argument is an ordinary file then the script should output whether or not the file has execute permission for the file owner.
• If the command line argument is neither a file or directory then the script should output an appropriate error message.
• If no command line argument is supplied then the script should output an appropriate error message.
You might want to take a look here first:
If you wrote your execise script then and some parts of it wont work and you are unable to find the problem yourself, then post your script.
the time for submission is up !
Smells like homework anyway...
|All times are GMT +2. The time now is 02:25.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.