-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 El 2014-04-29 a las 10:00 -0400, Anton Aylward escribió:
On 04/28/2014 10:43 PM, Carlos E. R. wrote:
Nope, it doesn't. Look for yourself:
Yes it does.
I wrote
while read WORD WORD2 ; do echo "$WORD" .....
Note that WORD2
Why would I want to use that WORD2? Ok, I know why I would, and I have used that syntax on occasion. But my script is not using it because it would not work!
In my case the first token is assigned to the first name and all subsequent tokens to the second name. You can treat this a number of ways. One is to use "-print0" and quoting. Another is to use a non-zero value of the second token to tell you that there are spaces. However I prefer the first as it prefers file names with tabs and multiples spaces. You can also use "-printf". However a lot of the time I use "-print0" and pipe the output of find into "xargs -0".
I prefer instead to write intermediate steps on text files where I can examine them, and re-execute a secondary step directly from the intermediary file without running the first step. - -- Cheers Carlos E. R. (from 13.1 x86_64 "Bottle" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iF4EAREIAAYFAlNgStgACgkQja8UbcUWM1wClgD9GOLrcIREzxrD2scbizP9lRrh 6L+g8wDFTLDRx7RtYX0A/AuIaMjJ+TvhPnnzX4ZgxEJwqmUTrsqomBh0UMmzTCtp =nSgs -----END PGP SIGNATURE-----