You’re right, in bash it works. In fish I need to escape them. Stupid me to not have tried in bash before asking…
]]>{} works. Curly braces are not special enough that you need to escape them.
Also, consider using + instead of \; when you want to operate on a bunch of files and don’t need to do one at a time (as in your example). It works like piping to xargs instead of using -exec, but you avoid the extra process. man find for details.
]]>P.S. Does “{}” work? Shouldn’t it be “\{\}”?
]]>Mint’s Review on Distrowatch (Overviews)
http://distrowatch.com/weekly.php?issue=20081006#feature
MINT GNOME MAIN EDITION COMMANDS TEST
Commands (3) – search – apt contains – apt content – has been added
Romeo enabled (sources.list) and – apt-get update
mintUpdate has installed mintUpload 2.0 – mintsystem 5.5
Test:
roberto@roberto-desktop ~ $ apt content mintsystem
/.
/usr
/usr/lib
/usr/lib/linuxmint
/usr/lib/linuxmint/mintSystem
/usr/lib/linuxmint/mintSystem/templates
/usr/lib/linuxmint/mintSystem/templates/preferences
/usr/lib/linuxmint/mintSystem/templates/apt.conf
/usr/lib/linuxmint/mintSystem/icon.png
/usr/lib/linuxmint/mintSystem/GPL.txt
/usr/lib/linuxmint/mintSystem/python
/usr/lib/linuxmint/mintSystem/python/configobj.py
/usr/lib/linuxmint/mintSystem/version
/usr/lib/linuxmint/mintSystem/version/mintInstall
/usr/lib/linuxmint/mintSystem/version/mintInstall/portals.list
/usr/lib/linuxmint/mintSystem/version/mintInstall/release.id
/usr/lib/linuxmint/mintSystem/version/mintInstall/sources.list
/usr/local
/usr/local/bin
/usr/local/bin/apt
/usr/local/bin/search
/usr/share
/usr/share/doc
/usr/share/doc/mintsystem
/usr/share/doc/mintsystem/copyright
/usr/share/doc/mintsystem/changelog.gz
roberto@roberto-desktop ~ $
——————————————————————-
roberto@roberto-desktop ~ $ apt contains /usr/lib/linuxmint/mintSystem/GPL.txt
mintsystem: /usr/lib/linuxmint/mintSystem/GPL.txt
roberto@roberto-desktop ~ $
——————————————————————
roberto@roberto-desktop ~ $ search âhelp
usage: search [arguments] [options]
arguments:
for text
in directory
options:
-c | –case-sensitive
-s | –show-filenames-only
roberto@roberto-desktop ~ $
———————————————————————-
roberto@roberto-desktop ~ $ search for workgroup in /etc/samba
/etc/samba/smb.conf:26:# Change this to the workgroup/NT-domain name your Samba server will part of
/etc/samba/smb.conf:27: workgroup = MSHOME
roberto@roberto-desktop ~ $
roberto@roberto-desktop ~ $ search in /etc/samba for workgroup âcase-sensitive âshow-filenames-only
usage: search [arguments] [options]
arguments:
for text
in directory
options:
-c | –case-sensitive
-s | –show-filenames-only
roberto@roberto-desktop ~ $
roberto@roberto-desktop ~ $ search in /etc/samba for workgroup -s
/etc/samba/smb.conf
roberto@roberto-desktop ~ $ search in /etc/samba for workgroup -c
/etc/samba/smb.conf:26:# Change this to the workgroup/NT-domain name your Samba server will part of
/etc/samba/smb.conf:27: workgroup = MSHOME
roberto@roberto-desktop ~ $
————————————————————————–
Please, take a look at my results.
Roberto