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: dbarrett at blazemonger.com (Daniel Barrett)
- Date: Wed, 27 Apr 2016 12:18:19 -0400
- References: <5de588b8-11f0-c674-843d-3f5ce878583a@gmail.com>
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: find . -name "*.png" -print0 | xargs -0 -I{} -P 4 optipng -o1 -preserve {} -- Dan Barrett dbarrett at blazemonger.com
- Follow-Ups:
- [Discuss] GNU xargs trick
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] GNU xargs trick
- From: smallm at sdf.org (Mike Small)
- [Discuss] GNU xargs trick
- References:
- [Discuss] GNU xargs trick
- From: richard.pieri at gmail.com (Rich Pieri)
- [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):