> > Don Russell wrote: > > ls -1 *[^.gz] | xargs -r -I {fn} gzip -c {fn} > {fn}.gz > The simple shell script provided by others is probably the best, but if you want to use xargs, you may be aware of: find . -maxdepth 1 -name \*.gz -print0 | xargs -0 for files with spaces in their name. -- This is an email sent via the webforum on http://fcp.homelinux.org http://fcp.homelinux.org/modules/newbb/viewtopic.php?post_id=95851&topic_id=23025&forum=10#forumpost95851