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: richard.pieri at gmail.com (Rich Pieri)
- Date: Wed, 27 Apr 2016 14:09:11 -0400
- In-reply-to: <22304.58955.29196.356362@snorkack.blazemonger.com>
- References: <5de588b8-11f0-c674-843d-3f5ce878583a@gmail.com> <22304.58955.29196.356362@snorkack.blazemonger.com>
On 4/27/2016 12:18 PM, Daniel Barrett wrote: > Nice trick. I'd recommend using "find -print0" and "xargs -0" for > safety, in case any of your PNG filenames contain space characters: Mine don't but it's a good practice anyway in the general case. On 4/27/2016 12:31 PM, Mike Small wrote: > New line characters in particular. -I changes matters to line at a > time so other space characters should be okay, right? Yes, line at a time, but you may need to quote the substitution string in the command arguments. On 4/27/2016 1:14 PM, MBR wrote: > Very cool! I've used xargs for many years, but I never knew about the > -I or -P options. Are they only in the GNU implementation, or have > they been ported to other platforms? xargs on recent Macintosh has these options. YMMV with other Unix-likes. -- Rich P.
- Follow-Ups:
- [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
- 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):