BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] GNU xargs trick
- Subject: [Discuss] GNU xargs trick
- From: smallm at sdf.org (Mike Small)
- Date: Wed, 27 Apr 2016 16:31:49 +0000
- In-reply-to: <22304.58955.29196.356362@snorkack.blazemonger.com> (message from Daniel Barrett on Wed, 27 Apr 2016 12:18:19 -0400)
Daniel Barrett <dbarrett at blazemonger.com> writes: > On April 27, 2016, Rich Pieri wrote: >>find . -name "*.png" -print | xargs -I{} -P 4 optipng -o1 -preserve {} > > Nice trick. I'd recommend using "find -print0" and "xargs -0" for > safety, in case any of your PNG filenames contain space characters: New line characters in particular. -I changes matters to line at a time so other space characters should be okay, right? -- Mike Small smallm at sdf.org
- References:
- [Discuss] GNU xargs trick
- From: dbarrett at blazemonger.com (Daniel Barrett)
- [Discuss] GNU xargs trick
- Prev by Date: [Discuss] GNU xargs trick
- Next by Date: [Discuss] GNU xargs trick
- Previous by thread: [Discuss] GNU xargs trick
- Next by thread: [Discuss] GNU xargs trick
- Index(es):