Terminal Logo 100x100 Mac: Rename all files names in a directory to lower caseJust like my last post, I was working with a directory of about 1000 files. There was all sorts of problems with the way they were named. Anyone whos used a *nix type system will know that “.jpg”, “.Jpg”, “.JPG” are all very separate things. To solve the issue I was having I needed to rename all of the files in the directory to lowercase.

I fired up my friend the Mac terminal and ran the following command:

for i in *; do mv "$i" "$(echo $i|tr A-Z a-z)"; done

The code loops through each of the files in the current directory and renames it to the lowercase equivalent. fast, simple, elegant. Major time saver.

  • digg Mac: Rename all files names in a directory to lower case
  • facebook Mac: Rename all files names in a directory to lower case
  • stumbleupon Mac: Rename all files names in a directory to lower case
  • twitter Mac: Rename all files names in a directory to lower case
  • delicious Mac: Rename all files names in a directory to lower case
  • reddit Mac: Rename all files names in a directory to lower case
  • friendfeed Mac: Rename all files names in a directory to lower case
  • posterous Mac: Rename all files names in a directory to lower case
  • tumblr Mac: Rename all files names in a directory to lower case

{ 3 comments }

Mac: Converting a directory of images into JPG files

by Josh Highland on July 13, 2011

Terminal Logo 100x100 Mac: Converting a directory of images into JPG files

Recently I was presented with a problem where I had a directory of about 1000 graphic files of mixed formats (png, gif, bmp, jpg), and I needed to convert them all to jpg files.

I tried various solutions but I ended using the following command in my Mac’s terminal.

mkdir jpegs; sips -s format jpeg *.* --out jpgs

This command creates directory called “jpgs”, and converts all of the files in the current directory into .jpg format, and moves them into the newly created “jpgs” direcotry.

It truly saved the day.

  • digg Mac: Converting a directory of images into JPG files
  • facebook Mac: Converting a directory of images into JPG files
  • stumbleupon Mac: Converting a directory of images into JPG files
  • twitter Mac: Converting a directory of images into JPG files
  • delicious Mac: Converting a directory of images into JPG files
  • reddit Mac: Converting a directory of images into JPG files
  • friendfeed Mac: Converting a directory of images into JPG files
  • posterous Mac: Converting a directory of images into JPG files
  • tumblr Mac: Converting a directory of images into JPG files

{ 0 comments }

Dude I’m speaking at WordCamp OC!

by Josh Highland on April 13, 2011

wcoc 250 2 0002 Speaking Dude Im speaking at WordCamp OC!That’s right, I’m speaking at the 2011 Orange County WordCamp, May 14th.

What is a WordCamp? WordCamp is a conference that focuses on everything WordPress. WordCamps are informal, community-organized events that are put together by WordPress users. Everyone from casual users to core developers participate, share ideas, and get to know each other.

I’m going to be presenting the topic, “Optimizing WordPress: Speed Matters”

By itself, WordPress is fast and snappy application but over time your site may become sluggish and laggy. A slow site is not good for your readers, or your search engine rankings. In a one hour presentation, I’m going to show some practical ways to optimize your WordPress sites content and configuration. The presentation will cover best practices, helpful plugins and real life optimization examples.

I’m excited to check out the other topics that are being presented. The OC WordCamp has three distinct tracks of sessions, beginners, advanced, and business minded users.

If you’re free on May 14th 2011 and love WordPress, you should come and hang out with some fellow WordPress users. http://2011.oc.wordcamp.org

  • digg Dude Im speaking at WordCamp OC!
  • facebook Dude Im speaking at WordCamp OC!
  • stumbleupon Dude Im speaking at WordCamp OC!
  • twitter Dude Im speaking at WordCamp OC!
  • delicious Dude Im speaking at WordCamp OC!
  • reddit Dude Im speaking at WordCamp OC!
  • friendfeed Dude Im speaking at WordCamp OC!
  • posterous Dude Im speaking at WordCamp OC!
  • tumblr Dude Im speaking at WordCamp OC!

{ 1 comment }

Handwriting vs Typing: A Losing Battle

by Josh Highland on March 22, 2011

I originally found this onĀ  TheOatmeal.com. It’s funny because its true. I can hardly read my own handwriting now, but I sure can type!

How my handwriting has changed since Kindergarten Handwriting vs Typing: A Losing Battle

  • digg Handwriting vs Typing: A Losing Battle
  • facebook Handwriting vs Typing: A Losing Battle
  • stumbleupon Handwriting vs Typing: A Losing Battle
  • twitter Handwriting vs Typing: A Losing Battle
  • delicious Handwriting vs Typing: A Losing Battle
  • reddit Handwriting vs Typing: A Losing Battle
  • friendfeed Handwriting vs Typing: A Losing Battle
  • posterous Handwriting vs Typing: A Losing Battle
  • tumblr Handwriting vs Typing: A Losing Battle

{ 1 comment }

The power of social media

by Josh Highland on March 3, 2011

revolutiontools The power of social media

  • digg The power of social media
  • facebook The power of social media
  • stumbleupon The power of social media
  • twitter The power of social media
  • delicious The power of social media
  • reddit The power of social media
  • friendfeed The power of social media
  • posterous The power of social media
  • tumblr The power of social media

{ 1 comment }