Search Results

Search: Posts Made By: tr32
3,122
Posted By tr32
Ok I understand the cd $1 concept on getting the...
Ok I understand the cd $1 concept on getting the directory from the user but I thought there was a way to make the script not even execute unless the user typed in an argument or parameter right...
3,122
Posted By tr32
I still have alot of work to do I know but I'm...
I still have alot of work to do I know but I'm knew at this.

#!/bin/sh


echo "Total number of directories:"
ls -l | grep -c "^d"
echo "Total number of files:"
ls -l | grep -c "^-"
echo...
3,122
Posted By tr32
Script Question
I have a script that will calculate some information about the current directory that I run the script in. How can I have it where it gets an argument from the user(such as a directory) and the...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 07:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy