
11 Nov
2011
11 Nov
'11
7:31 a.m.
On 2011-11-11 18:29, Matthew Cengia wrote:
mattcen@tony:tmp$ touch a b c "file with spaces" mattcen@tony:tmp$ ls a b c file with spaces typescript mattcen@tony:tmp$ files=$(for file in *; do printf "%s\n" "$file"; done)
Alternatively, now I think about it more, this will also work: files=$(find . -maxdepth 1 -printf "%f\n") -- Regards, Matthew Cengia