LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 06: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, 07: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: 344Reputation: 344Reputation: 344Reputation: 344
find ./ -type f -exec touch "{}" \;
 
Old 07-19-2007, 08: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



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 07:11 AM
Bash script to process every file in current dir and sub dirs BuckRogers01 Linux - Software 3 09-06-2005 07:32 AM
invisible files and dirs karmine Slackware - Installation 8 12-26-2004 03:05 PM
ls, dirs first, files later TroelsSmit Linux - Newbie 4 05-31-2004 11:47 AM
howto chmod files but not nested dirs? wh31 Slackware 3 12-19-2003 05:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:15 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration