From owner-freebsd-questions@FreeBSD.ORG Tue Jul 1 09:10:46 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 595F1549 for ; Tue, 1 Jul 2014 09:10:46 +0000 (UTC) Received: from mail-yh0-x233.google.com (mail-yh0-x233.google.com [IPv6:2607:f8b0:4002:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1A03E27DB for ; Tue, 1 Jul 2014 09:10:46 +0000 (UTC) Received: by mail-yh0-f51.google.com with SMTP id f10so5744947yha.24 for ; Tue, 01 Jul 2014 02:10:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=2DGvRcLZDA5vXsEGcehj6CS5rgMQCpy7UlC6KDPXlyU=; b=HGYLAsuSgsfwk6jyjULAUa5PUBcv4g3vY26W6iXnGq63k9uAYw9Ww2WEq990JxkyI6 PjXNYp2q5zceQ2Y5uooPfQbJPK01Fs4oVbZEcLOtuQy2NkH8NlKidljLetcNXzU+M+/d JmJbwSWoknK2NVVtefJ7p1khPETarNC09hgnlnHBwofUzIGaOAH8E6OmQccr0IBT8kCy Gewi9SEBITg3N8ol43mIjNi7XA8YNH9b4yYPFNfIuJo0h2grXLBbJtIeOcvKfzVvhogg 7hwuAE0MvL3lICM6x7C9111GemfGcd7WWPoMySEC9AME37YymHLECnpHYfDZkB3pgBrT nMtQ== MIME-Version: 1.0 X-Received: by 10.236.117.169 with SMTP id j29mr13372712yhh.118.1404205845288; Tue, 01 Jul 2014 02:10:45 -0700 (PDT) Received: by 10.170.154.193 with HTTP; Tue, 1 Jul 2014 02:10:45 -0700 (PDT) In-Reply-To: <20140701043715.GB4635@admin.sibptus.tomsk.ru> References: <20140630045605.GA11147@ethic.thought.org> <53B0EFF2.80205@calorieking.com> <20140630053004.GB16901@ethic.thought.org> <20140630064044.GA25085@ethic.thought.org> <20140630230316.44ec3257.freebsd@edvax.de> <20140701043715.GB4635@admin.sibptus.tomsk.ru> Date: Tue, 1 Jul 2014 10:10:45 +0100 Message-ID: Subject: Re: long string using find and "-exec ls -ls" to find part-of filename From: krad To: Victor Sudakov Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jul 2014 09:10:46 -0000 i like xjobs, it work similar to xargs but can do things in parallel more easily than xargs On 1 July 2014 05:37, Victor Sudakov wrote: > Polytropon wrote: > > Allow me to add one little reminder: > > > > When using xargs, usually _one_ program will be executed > > with a command line containing _all_ results of the find > > command. If you want to run a program on _each_ of the > > results, this is the typical sh solution: > > > > find ... | while read F; do > > somecommand $F > > done > > It's easier to use "xargs -n1" which I do all the time. > > > -- > Victor Sudakov, VAS4-RIPE, VAS47-RIPN > sip:sudakov@sibptus.tomsk.ru > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >