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)
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)
« 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