From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3D21AAC0.D307E3AB@strakt.com> From: Boyd Roberts MIME-Version: 1.0 To: 9fans@cse.psu.edu Subject: Re: [9fans] blanks in file names References: <20020702110848.F30EA19992@mail.cse.psu.edu> <003d01c221bf$0dfd9d30$6501a8c0@xpire> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Date: Tue, 2 Jul 2002 15:29:36 +0200 Topicbox-Message-UUID: bf8b727e-eaca-11e9-9e20-41e7f4b1d025 Seems like GNU have a 'solution': NAME xargs - build and execute command lines from standard input SYNOPSIS xargs [-0prtx] [-e[eof-str]] [-i[replace-str]] [-l[max-lines]] [= -n max-args] [-s max-chars] [-P max-procs] [--null] [--eof[=3Deof-s= tr]] [--replace[=3Dreplace-str]] [--max-lines[=3Dmax-lines]] [--intera= ctive] [--max-chars=3Dmax-chars] [--verbose] [--exit] [--max-procs=3Dmax-= procs] [--max-args=3Dmax-args] [--no-run-if-empty] [--version] [--help] [= com=AD mand [initial-arguments]] DESCRIPTION This manual page documents the GNU version of xargs. xargs rea= ds arguments from the standard input, delimited by blanks (which can = be protected with double or single quotes or a backslash) or newline= s, and executes the command (default is /bin/echo) one or more tim= es with any initial-arguments followed by arguments read from standa= rd input. Blank lines on the standard input are ignored. xargs exits with the following status: 0 if it succeeds 123 if any invocation of the command exited with status 1-125 124 if the command exited with status 255 125 if the command is killed by a signal 126 if the command cannot be run 127 if the command is not found 1 if some other error occurred. Some characters were just not meant to be in filenames, which would avoid= the above.