Rename multiple files
for filename in *.jpg; do newname=<code>echo $filename | sed 's/xxx/yyy/g'</code>; mv $filename $newname; done
for filename in *.jpg; do newname=<code>echo $filename | sed 's/xxx/yyy/g'</code>; mv $filename $newname; done
First, make sure that you have hfsprogs installed. Example installation command: Next, mount or remount the HFS+ drive; commands need to be as follows: Finally, if the drive was improperly…
Long story short: Apple saves the thumbnails that you see with quicklook, even if you delete the original. If you see the images stored into an external drive…
dd the following to ~/.bashrc # Avoid duplicates export HISTCONTROL=ignoredups:erasedups # When the shell exits, append to the history file instead of overwriting it shopt -s histappend #…
If you need to get the default max heap size used by your machine: java -XX:+PrintFlagsFinal -version 2>&1 | grep MaxHeapSize
When you have .ovf file from VMWare and get the following message: “Host resource of type “Other Storage Device (20)” is supported with SATA AHCI controllers only, line…
Quit Google Drive Go to /Applications/Google Drive.app/Contents/Resources swap png icons mac-normal and mac-normal-inverse restart Google Drive
An easy way is to create a copy of SystemVersion.plist from /System/Library/CoreServices/ into your desktop. change <key>ProductVersion</key> <string>10.10</string> to <key>ProductVersion</key> <string>10.9.4</string> put back the file to CoreServices and…
Apple introduced a nice feature: http://www.washingtonpost.com/blogs/the-switch/wp/2014/10/20/apples-mac-computers-can-automatically-collect-your-location-information/ In short: every single local search in spotlight is sent to Cupertino. That includes of course search for a file, person, company,…
Open (you need root permissions): /System/Library/CoreServices/Dock.app/Contents/Resources/DockMenus.plist Add a new subsection to “finder-running”: <dict> <key>command</key> <integer>1004</integer> <key>name</key> <string>REMOVE_FROM_DOCK</string> </dict> Kill the dock: killall Dock Then right click on Finder…