Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'xargs and working with spaces in filenames' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
xargs and working with spaces in filenames
Authored by: Helge33 on Jul 29, '09 08:26:37AM

Thanks for these hints! I am still fighting with the actual *use* of a generated filelist. No matter how I assign a list like:

flist=`\find . -name .DS_Store -print0 | xargs -0`

Everytime I want to loop over this list it breaks in words and not in filenames! (i.e. for f in $flist ....)

I would like to write a little script which copies recursively each .DS_Store File from $topfolder1 to $topfolder2 (my backup space) and this for each subdirectory.

For a guru this is probably a two-liner...? :-)

Thanks, Helge

[ Reply to This | # ]