From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ng0 Newsgroups: gmane.lisp.guile.user Subject: How to pass something on to xargs rm? Date: Tue, 27 Dec 2016 11:33:21 +0000 Message-ID: <87d1gd7gji.fsf@wasp.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1482838424 7036 195.159.176.226 (27 Dec 2016 11:33:44 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 27 Dec 2016 11:33:44 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Dec 27 12:33:39 2016 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cLq0h-0001EK-JV for guile-user@m.gmane.org; Tue, 27 Dec 2016 12:33:39 +0100 Original-Received: from localhost ([::1]:53679 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLq0l-0004fn-TY for guile-user@m.gmane.org; Tue, 27 Dec 2016 06:33:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cLq0O-0004fh-I4 for guile-user@gnu.org; Tue, 27 Dec 2016 06:33:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cLq0J-0003at-M3 for guile-user@gnu.org; Tue, 27 Dec 2016 06:33:20 -0500 Original-Received: from aibo.runbox.com ([91.220.196.211]:55848) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cLq0J-0003aM-FN for guile-user@gnu.org; Tue, 27 Dec 2016 06:33:15 -0500 Original-Received: from [10.9.9.210] (helo=mailfront10.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cLq0H-00021f-1e for guile-user@gnu.org; Tue, 27 Dec 2016 12:33:13 +0100 Original-Received: from tor-exit.dhalgren.org ([46.165.230.5] helo=localhost) by mailfront10.runbox.com with esmtpsa (uid:892961 ) (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) id 1cLq04-0002VZ-54 for guile-user@gnu.org; Tue, 27 Dec 2016 12:33:00 +0100 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x [fuzzy] X-Received-From: 91.220.196.211 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:13062 Archived-At: 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 Thanks, -- ♥Ⓐ ng0 PGP keys and more: https://n0is.noblogs.org/ http://ng0.chaosnet.org