Search Results

Search: Posts Made By: thedoobieman5
6,477
Posted By cfajohnson
"$@" represents all the arguments. If you...
"$@" represents all the arguments.

If you called the script with * as the argument, the shell will expand it and the script will see all the files (including subdirectories) in the current...
6,477
Posted By Scott
Hi. You have set garbage to $1 - the first...
Hi.

You have set garbage to $1 - the first file.

You can change that line to:

garbage="$@"

to mean "all files", but that only works so long as your filenames don't have spaces in them.
...
Showing results 1 to 2 of 2

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