I want to mass rename hundred of filenames like filename 001.jpg to filename-001.jpg … … … filename 099.jpg to filename-099.jpg I use this command to rename all in few seconds in my MacBook Pro. I think it is fine to run in any linux. [code lang=”bash”] for f in *\ *; do mv "$f" "${f// Continue reading “Fastest way to rename filenames with space to dash in linux”
Category Archives: Mac
Show Image Size in Terminal or Shell
The easiest way to show the file size in Terminal in Mac or Linux. [code lang=”bash”] ustins-MacBook-Pro:jpg juzhax$ file 001.jpg 001.jpg: JPEG image data, EXIF standard Justins-MacBook-Pro:jpg juzhax$ identify 001.jpg 001.jpg JPEG 720×468 720×468+0+0 8-bit sRGB 59.8KB 0.000u 0:00.009 Justins-MacBook-Pro:jpg juzhax$ [/code]
command c expects followed by text error in Mac
You received error from the sed command in Mac, because the argument in mac is different. If you type in Mac terminal, you may receive error like this [code lang=”bash”] Justins-MacBook-Pro:2 juzhax$ sed -i ‘s/old_text/new_text/g’ example.txt sed: 1: "config.php": command c expects \ followed by text [/code] The first argument should be the extension of Continue reading “command c expects followed by text error in Mac”
How to convert pvr.czz file to PNG ?
Download TexturePacker Install and it does support command line tools. To convert single pvr.czz file to PNG in console, here is the way. [code lang=”bash”] TexturePacker filename.pvr.ccz –sheet filename.png –data dummy.plist –algorithm Basic –allow-free-size –no-trim [/code] To convert mass pvr.czz file to PNG in console, here is the way. [code lang=”bash”] find -name \*.pvr.czz | Continue reading “How to convert pvr.czz file to PNG ?”
invalid object in plist for destination format
checking for Tcl configuration… configure: error: Can’t find Tcl configuration definitions
sh-3.2# port selfupdate —> Updating MacPorts base sources using rsync MacPorts base version 2.1.3 installed, MacPorts base version 2.2.1 downloaded. —> Updating the ports tree —> MacPorts base is outdated, installing new version 2.2.1 Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl Error: /opt/local/bin/port: port selfupdate failed: Error installing new Continue reading “checking for Tcl configuration… configure: error: Can’t find Tcl configuration definitions”
Remove Non Alpha numerics in BBEdit
Replace [^abcdefghijklmnopqrstuvwxyz \r] To Empty
