[Discuss] Multiple HDD setup in Linux
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Sat May 10 10:03:22 PDT 2008
On 2008-05-10 09:13-0700 Steven Kurylo wrote:
> find . -type f -print0 | xargs --null md5sum > md5sum.out
Thanks, Steven, for pointing out those -print0 and --null options which were
complete news to me (but which are well-documented in the respective man
pages as a way to deal with unusual filenames). It's amazing how there is
always something new to learn about the great power of the GNU command-line
tools compared to the corresponding run-of-the-mill Unix command-line tools.
I also have to admit I over-simplified things for Stan to get the overview
across, and in the past I have been forced to use similar filename filtering
solutions to what Ken proposed to deal with unusual filenames that included
special characters. But the above is obviously the best solution to this
"unusual filename" problem if you have access to GNU tools (guaranteed on
GNU/Linux, but not necessarily on other Unix systems).
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
More information about the Discuss
mailing list