Tuesday, December 18, 2012

find and mv files in bash

I thought I would document this shell command for posterity's sake.  My bash skills are sketchy so I will need to look it up again.

I downloaded a few zip files this morning and needed to move them to a new directory.  Moving them to a new directory from the command line was trivial:


for i in $(find . -type f -newermt 2012-12-18); do cp $i /[NEW DIRECTORY PATH/; done;

Monday, December 10, 2012

You have already activated torquebox...

Working with TorqueBox this afternoon I got the following error just after creating a new application :

You have already activated torquebox-core 2.1.2, but your Gemfile requires torquebox-core 2.0.3.redhat.1. Using bundle exec may solve this.

A quick check inside my .rvm/gems/jruby-1.6.7.2@appname/ folder showed that I had two versions of torquebox installed :



I deleted the incorrect version, 2.1.1.  Everything was fine.