The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
OS X (Apple)
\{\} \
Login to Discuss or Reply to this Discussion in Our Community
Thread Tools
Search this Thread
Operating Systems
OS X (Apple)
\{\} \
#
1
11-10-2010
lazybaer
Registered User
23,
0
Join Date: Aug 2009
Last Activity: 17 September 2016, 3:08 PM EDT
Posts: 23
Thanks Given: 0
Thanked 0 Times in 0 Posts
\{\} \
Hi
I use the following instruction in a script
Code
:
/usr/bin/find /Library/Safari/ -not -name Bookmarks.plist -execdir /bin/rm -rf \{\} \
I know what is going to happen. What I do not understand is the last part
Code
:
\{\} \
Can someone explain me that (Google was of no help at all)
Thanks in advance
Lazy
Last edited by Scott; 11-10-2010 at
02:49 PM
.. Reason: Please use code tags
lazybaer
View Public Profile for lazybaer
Find all posts by lazybaer
#
2
11-10-2010
Scott
Administrator Emeritus
9,179,
1,331
Join Date: Jun 2009
Last Activity: 26 February 2019, 5:57 PM EST
Posts: 9,179
Thanks Given: 430
Thanked 1,331 Times in 1,120 Posts
Hi.
I don't suppose that
\{\}
is different from just
{}
, a description of which is found in the
man page for find
.
(and there's a missing
;
after the
\
at the end of the line)
Scott
View Public Profile for Scott
Find all posts by Scott
#
3
11-10-2010
Corona688
Registered User
23,310,
4,623
Join Date: Aug 2005
Last Activity: 7 July 2020, 11:47 AM EDT
Location: Saskatchewan
Posts: 23,310
Thanks Given: 1,331
Thanked 4,623 Times in 4,217 Posts
It's equivalent to '{}', which the
find
command substitutes with the file it found.
Corona688
View Public Profile for Corona688
Visit Corona688's homepage!
Find all posts by Corona688
Login or Register to Ask a Question
Previous Thread
|
Next Thread
Login or Register to Ask a Question
Member Badges and Information Modal
×