fighting with xargs :-(
Harald Hoyer (slash)
no-reply-gw at fcp.homelinux.org
Mon Jun 26 07:28:48 UTC 2006
>
> 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
More information about the users
mailing list