To remove the spaces in filenames try 'rename', e.g.:

% rename " " - *.html

On Fri, 26 Oct 2001, George Vieira wrote:

> hang on.. your right..sorry.
> ls -1 | while read A; do echo ">$A<"; done

Yuck! What a hack. That fixes spaces, but now breaks on filenames
containing newlines.

The original problem was caused by the completely unneeded use of 'ls'.
Some correct examples were since given, buts its worth pointing out that
the real problem is unneccesary complexity. KISS.

  Also avoid spaces in HTML filenames, since web standards dont allow
spaces in URLs.

-- 
Mike Holland  <[EMAIL PROTECTED]>
                        --==--
"Everybody is talking about the weather but nobody does anything
about it."      -- Mark Twain





-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to