LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-18-2007, 07:55 AM   #1
O'Li
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Rep: Reputation: 0
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
 
Old 07-18-2007, 08:35 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
find ./ -type f -exec touch "{}" \;
 
Old 07-19-2007, 09:11 PM   #3
O'Li
LQ Newbie
 
Registered: Jul 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Smile 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)
 
  


Reply

Tags
file


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
command to show only dirs in current dir? Lordandmaker Linux - Newbie 3 01-06-2006 08:11 AM
Bash script to process every file in current dir and sub dirs BuckRogers01 Linux - Software 3 09-06-2005 08:32 AM
invisible files and dirs karmine Slackware - Installation 8 12-26-2004 04:05 PM
ls, dirs first, files later TroelsSmit Linux - Newbie 4 05-31-2004 12:47 PM
howto chmod files but not nested dirs? wh31 Slackware 3 12-19-2003 06:37 PM


All times are GMT -5. The time now is 10:11 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration