From unknown Wed Jun 25 03:56:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8796: I need help piping csplit Resent-From: Julio Cesar Gonzalez Torres Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 03 Jun 2011 19:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8796 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 8796@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.130713064713343 (code B ref -1); Fri, 03 Jun 2011 19:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Jun 2011 19:50:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QSaOM-0003T9-Je for submit@debbugs.gnu.org; Fri, 03 Jun 2011 15:50:47 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QSaKM-0003MW-OM for submit@debbugs.gnu.org; Fri, 03 Jun 2011 15:46:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSaKG-0001rA-CT for submit@debbugs.gnu.org; Fri, 03 Jun 2011 15:46:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:38874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSaKG-0001r1-1o for submit@debbugs.gnu.org; Fri, 03 Jun 2011 15:46:32 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSaKE-0007iU-Hs for bug-coreutils@gnu.org; Fri, 03 Jun 2011 15:46:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSaKD-0001qV-3N for bug-coreutils@gnu.org; Fri, 03 Jun 2011 15:46:30 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:46009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSaKC-0001qA-M3 for bug-coreutils@gnu.org; Fri, 03 Jun 2011 15:46:28 -0400 Received: by wyf19 with SMTP id 19so2070848wyf.0 for ; Fri, 03 Jun 2011 12:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=xXJpHYeSD8l1zzeopOMwzYmi5880Uyeg6TpsETVKk+0=; b=AbR6z0X5+9aivZcU+n5J/v2WXDTFfmRbxCVUwuE63UAYgxkhz+rZtKmq1t71bNKWzU cOkTx1dMLAHFBgaoP1zPHn+wzmOrwNFatafIT/ODrrIwBS/Bg45MjlnJGqeOuCis5QpB 4+QOkyOYc+YoIytE8qOJNteqhJVGbNliJoL84= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=tFbTzFmDKS4kLmq9PFllqfU87Hwttd1wkypO5/1fR6rgcVgVSk12QWTprQRXbffFI2 ZDQLVOccoOlWdxF/GHWnm5xfEd0SG+jYEUYVSBxIZBxQ0g2GRZGEzESiPxJzfT8iPg2E okyt9dDh61I7MU+CgTsQYzOtW4rWqi+B1lQAQ= MIME-Version: 1.0 Received: by 10.216.230.153 with SMTP id j25mr7755430weq.22.1307130386771; Fri, 03 Jun 2011 12:46:26 -0700 (PDT) Received: by 10.216.170.193 with HTTP; Fri, 3 Jun 2011 12:46:26 -0700 (PDT) Date: Fri, 3 Jun 2011 14:46:26 -0500 Message-ID: From: Julio Cesar Gonzalez Torres Content-Type: multipart/alternative; boundary=0016e65b64fc60f06e04a4d40266 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Mailman-Approved-At: Fri, 03 Jun 2011 15:50:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --0016e65b64fc60f06e04a4d40266 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi I have an issue, I'm trying to split several files into two the first on= e is the head of file and the next one has to start with some title, but csplit don't allowe me to piping, this is how i'm doing $> find ./ -name '*out' | xargs csplit '/All Frequencies/' '/Statistical/' I have to now all the locations of files that ends with "out", next every time the command finds a file I want to csplited but terminal sends me an error: csplit: cannot be open =C2=AB/Statistical/=C2=BB to read: file or extension= don't exist-- * *_=C2=AC\_ ___________________________ ( =C2=AC=C2=B8> || Julio C=C3=A9sar Gonz=C3=A1lez Torres|| | \ =C2=BB=E2=94=80=E2=94=80 || UAM-Azcapotzalco FAMA || | V() =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80 L // |_ |_* * --0016e65b64fc60f06e04a4d40266 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi I have an issue, I'm trying to split several files into two the firs= t one is the head of file and the next one has to start with some title, bu= t csplit don't allowe me to piping, this is how i'm doing

$> find ./ -name '*out' | xargs csplit '/All Frequencies/= 9; '/Statistical/'

I have to now all the locat= ions of files that ends with "out", next every time the command f= inds a file I want to csplited but terminal sends me an error:

csplit: cannot be open =C2=AB/Statistical/=C2=BB to read: file or exten= sion don't exist--

_=C2=AC\_ =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ____= _______________________
=C2=A0(=C2=A0 =C2= =AC=C2=B8>=C2=A0 =C2=A0 =C2=A0 =C2=A0 || Julio C=C3=A9sar Gonz=C3=A1lez = Torres||
=C2=A0 |=C2=A0=C2=A0 \ = =C2=BB=E2=94=80=E2=94=80=C2=A0=C2=A0 || UAM-Azcapotzalco=C2=A0 FAMA=C2=A0= =C2=A0 ||
=C2=A0 | V()=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80
=E2=94=80<= br style=3D"font-family: arial,helvetica,sans-serif;">=C2=A0 L=C2=A0 // =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0 |_ |_=



--0016e65b64fc60f06e04a4d40266-- From unknown Wed Jun 25 03:56:51 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Julio Cesar Gonzalez Torres Subject: bug#8796: closed (Re: bug#8796: I need help piping csplit) Message-ID: References: <4DE955A4.3040400@redhat.com> X-Gnu-PR-Message: they-closed 8796 X-Gnu-PR-Package: coreutils Reply-To: 8796@debbugs.gnu.org Date: Fri, 03 Jun 2011 21:45:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1307137503-23589-1" This is a multi-part message in MIME format... ------------=_1307137503-23589-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #8796: I need help piping csplit which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 8796@debbugs.gnu.org. --=20 8796: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D8796 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1307137503-23589-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 8796-done) by debbugs.gnu.org; 3 Jun 2011 21:44:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QScAA-00067K-4z for submit@debbugs.gnu.org; Fri, 03 Jun 2011 17:44:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QScA7-000678-5y for 8796-done@debbugs.gnu.org; Fri, 03 Jun 2011 17:44:12 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p53Li5kr027019 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 3 Jun 2011 17:44:05 -0400 Received: from [10.3.113.140] (ovpn-113-140.phx2.redhat.com [10.3.113.140]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p53Li4bT008827; Fri, 3 Jun 2011 17:44:04 -0400 Message-ID: <4DE955A4.3040400@redhat.com> Date: Fri, 03 Jun 2011 15:44:04 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 MIME-Version: 1.0 To: Julio Cesar Gonzalez Torres Subject: Re: bug#8796: I need help piping csplit References: In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig0C44C45E30069F9996707161" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-Spam-Score: -10.3 (----------) X-Debbugs-Envelope-To: 8796-done Cc: 8796-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -10.3 (----------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0C44C45E30069F9996707161 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable tag 8796 notabug close 8796 thanks On 06/03/2011 01:46 PM, Julio Cesar Gonzalez Torres wrote: > Hi I have an issue, I'm trying to split several files into two the firs= t one > is the head of file and the next one has to start with some title, but > csplit don't allowe me to piping, this is how i'm doing >=20 > $> find ./ -name '*out' | xargs csplit '/All Frequencies/' '/Statistica= l/' >=20 > I have to now all the locations of files that ends with "out", next eve= ry > time the command finds a file I want to csplited but terminal sends me = an > error: >=20 > csplit: cannot be open =C2=AB/Statistical/=C2=BB to read: file or exten= sion don't > exist-- Thanks for the report. However, this is not a bug in coreutils, but in your usage of xargs. So I'm marking it closed. It helps to insert 'echo' prior to 'csplit' to see what you are calling: csplit '/All Frequencies/' '/Statistical/' file1out file2out ...out But csplit is documented as requiring a single file name, followed by multiple patterns. What you WANT to do is: find . -name '*out' | \ xargs -I{} csplit {} '/All Frequencies/' '/Statistical'/ The use of -I{} forces xargs to use one file per csplit invocation (instead of cramming in as many files as possible), as well as to let you choose where to substitute the file name 9rather than cramming it on as the last argument). --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig0C44C45E30069F9996707161 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEbBAEBCAAGBQJN6VWkAAoJEKeha0olJ0NqL+cH+NI889Cqq+8bTwiOfws0nwEB TdiVPUyCaxTGChqinwO2r4BRKV0XwzT/Hp1w0x/deYfeUQFXh0YP3HIpMKy6OND0 OqC4+JeCD+QvSaJoY95yWv3ImqbAh0lKtVCnovEq8uqrUAfOK+eJqZrm6GR87A9c Kycw6G7LCufqTkhTol8CrnloAxaiVTYIwmw6oNktcT1iftMe5SnLJbzIAQU2qQNa FUzr8H9sew79ZhZcsu/AblCyeUbM21JWK6i7mmo534altNjv3glrYTPVAEQbRiwB +jGAiVL+UM8hzE1t/TEP8560X6lPvyXjWg7bH1XaBqLDg/+TucjvZViNEuG89w== =9Q77 -----END PGP SIGNATURE----- --------------enig0C44C45E30069F9996707161-- ------------=_1307137503-23589-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Jun 2011 19:50:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QSaOM-0003T9-Je for submit@debbugs.gnu.org; Fri, 03 Jun 2011 15:50:47 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QSaKM-0003MW-OM for submit@debbugs.gnu.org; Fri, 03 Jun 2011 15:46:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSaKG-0001rA-CT for submit@debbugs.gnu.org; Fri, 03 Jun 2011 15:46:33 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:38874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSaKG-0001r1-1o for submit@debbugs.gnu.org; Fri, 03 Jun 2011 15:46:32 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSaKE-0007iU-Hs for bug-coreutils@gnu.org; Fri, 03 Jun 2011 15:46:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QSaKD-0001qV-3N for bug-coreutils@gnu.org; Fri, 03 Jun 2011 15:46:30 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:46009) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QSaKC-0001qA-M3 for bug-coreutils@gnu.org; Fri, 03 Jun 2011 15:46:28 -0400 Received: by wyf19 with SMTP id 19so2070848wyf.0 for ; Fri, 03 Jun 2011 12:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=xXJpHYeSD8l1zzeopOMwzYmi5880Uyeg6TpsETVKk+0=; b=AbR6z0X5+9aivZcU+n5J/v2WXDTFfmRbxCVUwuE63UAYgxkhz+rZtKmq1t71bNKWzU cOkTx1dMLAHFBgaoP1zPHn+wzmOrwNFatafIT/ODrrIwBS/Bg45MjlnJGqeOuCis5QpB 4+QOkyOYc+YoIytE8qOJNteqhJVGbNliJoL84= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=tFbTzFmDKS4kLmq9PFllqfU87Hwttd1wkypO5/1fR6rgcVgVSk12QWTprQRXbffFI2 ZDQLVOccoOlWdxF/GHWnm5xfEd0SG+jYEUYVSBxIZBxQ0g2GRZGEzESiPxJzfT8iPg2E okyt9dDh61I7MU+CgTsQYzOtW4rWqi+B1lQAQ= MIME-Version: 1.0 Received: by 10.216.230.153 with SMTP id j25mr7755430weq.22.1307130386771; Fri, 03 Jun 2011 12:46:26 -0700 (PDT) Received: by 10.216.170.193 with HTTP; Fri, 3 Jun 2011 12:46:26 -0700 (PDT) Date: Fri, 3 Jun 2011 14:46:26 -0500 Message-ID: Subject: I need help piping csplit From: Julio Cesar Gonzalez Torres To: bug-coreutils@gnu.org Content-Type: multipart/alternative; boundary=0016e65b64fc60f06e04a4d40266 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Fri, 03 Jun 2011 15:50:45 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.9 (-----) --0016e65b64fc60f06e04a4d40266 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi I have an issue, I'm trying to split several files into two the first on= e is the head of file and the next one has to start with some title, but csplit don't allowe me to piping, this is how i'm doing $> find ./ -name '*out' | xargs csplit '/All Frequencies/' '/Statistical/' I have to now all the locations of files that ends with "out", next every time the command finds a file I want to csplited but terminal sends me an error: csplit: cannot be open =C2=AB/Statistical/=C2=BB to read: file or extension= don't exist-- * *_=C2=AC\_ ___________________________ ( =C2=AC=C2=B8> || Julio C=C3=A9sar Gonz=C3=A1lez Torres|| | \ =C2=BB=E2=94=80=E2=94=80 || UAM-Azcapotzalco FAMA || | V() =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94= =80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80 L // |_ |_* * --0016e65b64fc60f06e04a4d40266 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi I have an issue, I'm trying to split several files into two the firs= t one is the head of file and the next one has to start with some title, bu= t csplit don't allowe me to piping, this is how i'm doing

$> find ./ -name '*out' | xargs csplit '/All Frequencies/= 9; '/Statistical/'

I have to now all the locat= ions of files that ends with "out", next every time the command f= inds a file I want to csplited but terminal sends me an error:

csplit: cannot be open =C2=AB/Statistical/=C2=BB to read: file or exten= sion don't exist--

_=C2=AC\_ =C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ____= _______________________
=C2=A0(=C2=A0 =C2= =AC=C2=B8>=C2=A0 =C2=A0 =C2=A0 =C2=A0 || Julio C=C3=A9sar Gonz=C3=A1lez = Torres||
=C2=A0 |=C2=A0=C2=A0 \ = =C2=BB=E2=94=80=E2=94=80=C2=A0=C2=A0 || UAM-Azcapotzalco=C2=A0 FAMA=C2=A0= =C2=A0 ||
=C2=A0 | V()=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80
=E2=94=80<= br style=3D"font-family: arial,helvetica,sans-serif;">=C2=A0 L=C2=A0 // =C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
=C2=A0=C2=A0 |_ |_=



--0016e65b64fc60f06e04a4d40266-- ------------=_1307137503-23589-1-- From unknown Wed Jun 25 03:56:51 2025 X-Loop: help-debbugs@gnu.org Subject: bug#8796: I need help piping csplit Resent-From: Eric Blake Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 03 Jun 2011 22:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8796 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 8796@debbugs.gnu.org Received: via spool by 8796-submit@debbugs.gnu.org id=B8796.130714008927436 (code B ref 8796); Fri, 03 Jun 2011 22:29:01 +0000 Received: (at 8796) by debbugs.gnu.org; 3 Jun 2011 22:28:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QScqf-00078T-AM for submit@debbugs.gnu.org; Fri, 03 Jun 2011 18:28:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QScqc-000783-Q7 for 8796@debbugs.gnu.org; Fri, 03 Jun 2011 18:28:07 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p53MS0dQ007264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <8796@debbugs.gnu.org>; Fri, 3 Jun 2011 18:28:01 -0400 Received: from [10.3.113.140] (ovpn-113-140.phx2.redhat.com [10.3.113.140]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p53MS0qn020791 for <8796@debbugs.gnu.org>; Fri, 3 Jun 2011 18:28:00 -0400 Message-ID: <4DE95FEF.3080901@redhat.com> Date: Fri, 03 Jun 2011 16:27:59 -0600 From: Eric Blake Organization: Red Hat User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.10 MIME-Version: 1.0 References: <4DE955A4.3040400@redhat.com> In-Reply-To: <4DE955A4.3040400@redhat.com> X-Enigmail-Version: 1.1.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig4C57C018CD297B4AFDAC3397" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-Spam-Score: -10.3 (----------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -10.3 (----------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4C57C018CD297B4AFDAC3397 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 06/03/2011 03:44 PM, Eric Blake wrote: > But csplit is documented as requiring a single file name, followed by > multiple patterns. >=20 > What you WANT to do is: >=20 > find . -name '*out' | \ > xargs -I{} csplit {} '/All Frequencies/' '/Statistical'/ Or, ditch xargs altogether, and do it all through find: find . -name '*out' -exec csplit {} "/All Frequencies/" /Statistical/ \; which has the added benefit of avoiding problems with any *out files that have embedded newlines. --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enig4C57C018CD297B4AFDAC3397 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJN6V/vAAoJEKeha0olJ0NqK+oH/3MmzQj3cmU0wU2g+m+C6EzD TkM5VLaHFyf5BgrsITOjTrdYN0Ye+enRPlyvDds93X/KxBONOqO94STVukdQB6nI JveXfGF0Fmc7twEfH0wN2Y1W+qMC5NheRr1fYVhxI9z43NvNgxj4dwAvpj9j+jpo dFpSPtxI5VegtyngfMeGQ3YfQgb/cjsjRNhNRp/yXmdX3JbGfH2bNI8dmLv8c1jc ETme0/oVt7pfx//S50KStz7uTJ2XDfUh4zufio80bQoZ4blp0JfMTo1PUNWnSLnM hlbzwgqWP7Z9Nb75/H7zaNaei1WDWPu893Q9LaRS4PneUk46hVLp/qC2bWEr8bw= =y5an -----END PGP SIGNATURE----- --------------enig4C57C018CD297B4AFDAC3397--