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