[wellylug] recursive touch
David Antliff
dave.antliff at paradise.net.nz
Thu Apr 29 16:48:22 NZST 2004
On Thu, 29 Apr 2004, E.Chalaron wrote:
> find DIR | xargs touch
> xargs: unmatched single quote
> or
>
> find DIR -exec touch {} \;
> Touch is asking for an option... not too familiar with it....
Do you have any filenames with atypical characters in them, like ' or
spaces? Find doesn't escape them very well. For spaces, you can use find
... -print0 | xargs -r0 ... to change the xargs delimiter to nulls rather
than spaces. As for quotes... hmmm.... that's going to get a little
messier.
Try 'xargs echo touch' too, to see what it's trying to do precisely -
perhaps you'll see where it's going wrong.
--
David.
More information about the wellylug
mailing list