View Single Post
  #1  
Old 29th August 2011, 05:52
abood1190 abood1190 is offline
Junior Member
 
Join Date: Aug 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default question in shell script

Hell guys,
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.
Reply With Quote
Sponsored Links