[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to pass something on to xargs rm?
From: |
John Darrington |
Subject: |
Re: How to pass something on to xargs rm? |
Date: |
Tue, 27 Dec 2016 13:07:50 +0100 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
On Tue, Dec 27, 2016 at 11:33:21AM +0000, ng0 wrote:
Hi,
I have some scripts and small applications I'm slowly moving over
to guile.
One of them features this[0] line at the end which passes results on
to xargs rm. I picked a start with just (system*) everything I
had before to learn about the behavior and outcome, and improve
from this point.
I know that "|" will not work, so what else could possibly work
(for starters, in the long run I'll generalize and extend what I
currently have) to execute this command which deletes every file
listed in the previous search?
[0]: notmuch search --output=files tag:deleted | xargs -L 1 rm
I think you want something like: .... | xargs -I {} rm {}
J'
--
Avoid eavesdropping. Send strong encrypted email.
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.
signature.asc
Description: Digital signature