LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   howto touch all files in current+sub-dirs (https://www.linuxquestions.org/questions/linux-newbie-8/howto-touch-all-files-in-current-sub-dirs-570359/)

O'Li 07-18-2007 06:55 AM

howto touch all files in current+sub-dirs
 
Hi, linux questioners ans answers

I have tried to touch all non-hiden files in current dir+sub-dir on Fedora4 with

find ./ -type f -exec touch '{}';
the error is :find missing argument to -exec

find -type f -exec touch {}\;
the error is :find missing argument to -exec

find -type f -exec -c touch {};
the error is :find missing argument to -exec

'find -type f' part works well, listed all files in cur+sub dirs,
but not '-exec touch {}', which is the just the part I need)

Can anyone tell me the correct command ?

thanks in advance
O'Li

macemoneta 07-18-2007 07:35 AM

find ./ -type f -exec touch "{}" \;

O'Li 07-19-2007 08:11 PM

Re: application icon in Gnome menu
 
Hello, Dear (Sir/Madam ?) Macemoneta

The command given by you works, thank you.
The command is used on a recently finished KDE program.
You could visit http://kfbsite.googlepages.com to have a look
if you would like to.

Thank you
Yours
O'Li
(retired is not retreated)


All times are GMT -5. The time now is 01:21 AM.