Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-18-2007, 06:55 AM   #1
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
Old 07-18-2007, 07:35 AM   #2
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: 332Reputation: 332Reputation: 332Reputation: 332
find ./ -type f -exec touch "{}" \;
Old 07-19-2007, 08:11 PM   #3
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 to have a look
if you would like to.

Thank you
(retired is not retreated)



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 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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 PM.

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