> > You missed one set of quotes:
> >
> > for f in "${1:-.}"/*; do
>
> That still won't handle whitespace in file names. Probably better to
> use find instead.
>
> Andreas.
find is cool.
ls has an -I, --ignore=PATTERN
ls -l -I"*-IGN-*"
Greg added the quotes. Thanks.
I tested with:
mkdir "dir with spaces"
touch "dir with spaces"/simple-{a..c} "dir with spaces"/test-abc-IGN-def "dir
with spaces/spa ces"
./scriptname "dir with spaces"
Worked as expected.
Peggy Russell
