b3ta.com qotw
You are not logged in. Login or Signup
Home » Question of the Week » Redundant technology » Post 953867 | Search
This is a question Redundant technology

Music on vinyl records, mobile phones the size of house bricks and pornography printed on paper. What hideously out of date stuff do you still use?

Thanks to boozehound for the suggestion

(, Thu 4 Nov 2010, 12:44)
Pages: Latest, 14, 13, 12, 11, 10, ... 1

« Go Back | See The Full Thread

On some csh shells you get rename:
rename 50 100 50*

Job done. DOS makes me feel a bit sick. It's like a proper shell's crippled cousin
(, Thu 4 Nov 2010, 20:26, 2 replies)
Smiles...
All these replies have actually been interesting to read! As someone who still plays with command prompts and writes the odd script at work I love stuff like this!
(, Thu 4 Nov 2010, 23:48, closed)

/bin/csh

% ls
50test.txt
% rename 50 100 50*
% ls
50test.txt

didn't work.

I think (don't know) that 'rename' is a PERL script that's unlikely to be influenced much by the shell it's running on.

however rename does accept perl regexps... so you could use:
rename 's/^50/100/' 50*

Better than my messy sub routine.
(Just confirmed on my Gentoo system)
(, Fri 5 Nov 2010, 3:15, closed)

« Go Back | See The Full Thread

Pages: Latest, 14, 13, 12, 11, 10, ... 1