Quote:
Originally Posted by till
You might want to take a look here first:
http://tldp.org/LDP/abs/html/
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.
|
this is my code
Code:
#!/bin/sh
echo " Command line argument is :" $1
if [ -d $1 ]
then
echo " The number of files in the directory is ` ls -l | wc -l` "
else
echo " It is not a dirctory "
fi
if [ -f $1 ]
then
echo " The execute permission for the file owner is ` ls -l $1`"
else
echo " There is no execute permission "
fi
the code might be wrong !!
the time for submission is up !
Thank you
Recent comments
10 hours 24 min ago
15 hours 28 min ago
19 hours 53 min ago
21 hours 42 min ago
1 day 11 hours ago
1 day 11 hours ago
1 day 16 hours ago
1 day 23 hours ago
2 days 26 min ago
2 days 1 hour ago