b3ta.com qotw
You are not logged in. Login or Signup
Home » Question of the Week » Redundant technology » Post 954355 | 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


/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, Reply)

« Go Back | See The Full Thread

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