Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Search Forums

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: abood1190
Forum: Programming/Scripts 1st September 2011, 02:39
Replies: 3
Views: 2,109
Posted By abood1190
this is my code #!/bin/sh echo " Command...

this is my 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 "
Forum: Programming/Scripts 29th August 2011, 06:52
Replies: 3
Views: 2,109
Posted By abood1190
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...
Showing results 1 to 2 of 2

 
Forum Jump

All times are GMT +2. The time now is 04:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.