Unix Programming - Re: Need to break a string "Hello1 Hello2 Hello3 Hello4 ..." into an array (

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > July 2007 > Re: Need to break a string "Hello1 Hello2 Hello3 Hello4 ..." into an array (





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: Need to break a string "Hello1 Hello2 Hello3 Hello4 ..." into an array (
Stephane CHAZELAS

2007-07-23, 7:20 pm

2007-07-20, 08:43(-04), Henry Townsend:
> Lucky7 wrote:
>
> set -- $(find ...)

[...]

No.

IFS='
'
set -f
set -- $(find ...)

which still doesn't work for file paths containing newline
characters.

The way to go is to use find -exec if you want to run some
commands on every file looked up by find.

--
Stéphane
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com