Tuesday, March 18, 2008

Defending 2001

2001: A Space Odyssey is my favorite movie. Those real cinemaniacs out there will totally empathize with this, while the people who didn't understand the film or whose attentions drifted away while watching it will be baffled at the logic of my tastes. They'll say "Ewww, it's so boring" or--like I heard my dad say when I was a small child--"What the hell? There was a baby floating in space at the

Defending 2001

2001: A Space Odyssey is my favorite movie. Those real cinemaniacs out there will totally empathize with this, while the people who didn't understand the film or whose attentions drifted away while watching it will be baffled at the logic of my tastes. They'll say "Ewww, it's so boring" or--like I heard my dad say when I was a small child--"What the hell? There was a baby floating in space at the

Monday, March 17, 2008

Film #12: Twin Peaks: Fire Walk With Me

Certainly, few TV series in history have been poured over more than Twin Peaks. Without it, there probably would've been no Sopranos, Lost, 24, or Six Feet Under. Fans of director/writer David Lynch, and of great television have inspected each frame of its always enthralling, often frustrating 29 episodes, scrambling for clues to a myriad of mysteries posed by its hundred-some-odd characters. Who

Film #12: Twin Peaks: Fire Walk With Me

Certainly, few TV series in history have been poured over more than Twin Peaks. Without it, there probably would've been no Sopranos, Lost, 24, or Six Feet Under. Fans of director/writer David Lynch, and of great television have inspected each frame of its always enthralling, often frustrating 29 episodes, scrambling for clues to a myriad of mysteries posed by its hundred-some-odd characters. Who

Here I Come to Save The Day: Andy Kaufman on DVD and The Problem with Bio-Pics

It's a hard thing to pull off, the filmed biography--harder than ever, probably. If a life is exciting enough to spawn cinematic translation, then I’m sure—via the number of middling bio-pics I’ve seen--that the directorial temptation is to simply, one by one, dramatize those events that made the life portrayed so special in the first place. Do this and, hey, you got yerself a movie. These “They

Here I Come to Save The Day: Andy Kaufman on DVD and The Problem with Bio-Pics

It's a hard thing to pull off, the filmed biography--harder than ever, probably. If a life is exciting enough to spawn cinematic translation, then I’m sure—via the number of middling bio-pics I’ve seen--that the directorial temptation is to simply, one by one, dramatize those events that made the life portrayed so special in the first place. Do this and, hey, you got yerself a movie. These “They

Thursday, March 13, 2008

rename multiple file or extension in linux or unix

Hello,

There might be many case where you want to rename multiple files or extensions. Like you may want to convert all php3 to php or html to htm.

On freebsd box you have got many option but not mv *.php3 *.php
The main reason for this not working is that the shells are not suppose to do so.

Also there are many ports available to do so.
But here I'll tell you about a simple csh shell script to do so.
Suppose you wan to rename all the file0.php3 file1.php3 .... filen.php3 to file0.php file1.php .... filen.php.

#!/bin/csh
foreach file (*.php3)

mv -iv $file `basename $file php3`php
end

  • Remember that ` is backquote not '.
  • There is no space in php3`php.
  • RTFM for mv -iv.
  • RTFM for basename and foreach.
Happy mv.