-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2014-04-28 a las 06:44 +0400, Andrey Borzenkov escribió:
В Sun, 27 Apr 2014 22:23:18 +0200 "Carlos E. R." <> пишет:
/home/cer/Long Directory name/even longer file name dot text
Which breaks if filename contains newline.
Yes, of course, I thought of that, but... I've never seen a file with a newline. I would never dream of creating one. Why would anyone do such a thing? If spaces in names breaks so many scripts around, a newline would make the rest go berseck
Then I use:
while read FILES ; do echo "$FILES" # or whatever. done < text_file_containing_list
Which loses consecutive whitespaces and performs "\" escaping.
Double spaces, you mean?
Whitespace is not a problem this way.
Sure because you will lose them :)
I have not seen a single "file not found error" in the output. The search has been running for hours, but I had to leave and I hibernated the machine. I will let it run when I get back. And then I will do a test run on a smaller path with names with double spaces, and see what happens. - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlNfD6YACgkQja8UbcUWM1y5rQD5AYIMlilqyi01ifYuLpvhCbkS 1qrxE51Wo0+C6ychbIgBAJ3EDEm0Lr50VLw1a97TkZY058SN6pY1sQmxDALDzvG9 =uf/P -----END PGP SIGNATURE-----