[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: du and wc should be able to read arguments from a file
From: |
Bob Proulx |
Subject: |
Re: du and wc should be able to read arguments from a file |
Date: |
Fri, 19 Sep 2003 09:12:05 -0600 |
User-agent: |
Mutt/1.3.28i |
Bernd Jendrissek wrote:
> Jim Meyering wrote:
> > If the format is simply one file name per line, then what about
> > files with names containing a newline?
> >
> > One solution is to require that newlines and backslashes be
> > backslash-escaped. Another is simply to require that file names
> > be NUL (aka '\0') separated, like what find's -print0 option would
> > output. In the interests of keeping things simple, I'm leaning
> > toward the latter.
>
> And even if the list of filenames is \n-separated to begin with, you can
> always pipe that through tr '\n' '\0'.
Actually, no. If the filename contained a newline then converting
that newline to a null would no longer match the original filename.
Bob
- Re: ls options: accept stdin, and list files except for..., (continued)
- Re: ls options: accept stdin, and list files except for..., Richard Dawe, 2003/09/14
- Re: ls options: accept stdin, and list files except for..., Dan Heller, 2003/09/15
- Re: ls options: accept stdin, and list files except for..., Richard Dawe, 2003/09/15
- Re: ls options: accept stdin, and list files except for..., Dan Heller, 2003/09/16
- Re: ls options: accept stdin, and list files except for..., Richard Dawe, 2003/09/16
- Re: ls options: accept stdin, and list files except for..., Dan Heller, 2003/09/16
- Re: ls options: accept stdin, and list files except for..., Richard Dawe, 2003/09/17
- Re: ls options: accept stdin, and list files except for..., Dan Heller, 2003/09/17
- du and wc should be able to read arguments from a file, Jim Meyering, 2003/09/18
- Re: du and wc should be able to read arguments from a file, Bernd Jendrissek, 2003/09/18
- Re: du and wc should be able to read arguments from a file,
Bob Proulx <=
- Re: du and wc should be able to read arguments from a file, Bernd Jendrissek, 2003/09/19
- Re: du and wc should be able to read arguments from a file, Dave Gotwisner, 2003/09/19
- Re: du and wc should be able to read arguments from a file, Richard Dawe, 2003/09/19
- Re: du and wc should be able to read arguments from a file, Dave Gotwisner, 2003/09/20
- Re: du and wc should be able to read arguments from a file, Jim Meyering, 2003/09/20
- Re: ls options: accept stdin, and list files except for..., Dave Gotwisner, 2003/09/15