Search Results

Search: Posts Made By: hss
1,414
Posted By hss
Problem with input parameters
Hi

I wrote a script which lists the content of a given directory.
I have just one problem. If you give 2 or more parameters, then it gives a strange error. After that error, it gives also an...
2,028
Posted By hss
Thanks!
Thanks!
2,028
Posted By hss
Ok, now I'm doing it this way, but the other...
Ok, now I'm doing it this way, but the other problem is listing the given directory. In my previous script, I had the variable $name, now I havent a variable, so how can I list the content of the...
2,028
Posted By hss
I'm doing this, but it gives an error. ...
I'm doing this, but it gives an error.

Here's the script:



function listDirectory
{
echo "Give in a directory name"

read name

if [ $# -eq 1 ]; then

if [ -d...
1,148
Posted By hss
Thanks guys!
Thanks guys!
2,028
Posted By hss
How to check on parameters
Hi

I have a script that reads a directory name, and then prints all de items in that directory. Now that works, but I want to check on the parameters to be sure that the user has write just 1...
1,148
Posted By hss
How to list the content of a directory
Hi

I want to write a script that reads a directory name, checks if the directory exists and lists the content of that directory.

That's what I have at the moment.



function listDirectory ...
Showing results 1 to 7 of 7

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