Thread: Mass Rename - fix this script please
hi
me mass rename? need replace brackets nothing. , have 0 experience scripts. found 1 , kind of edited it, cannot work right. here:
left bracket:
for right bracket:code:> in *; > x=$( echo $i | grep '(' | sed 's/(/\/g' ); > if [ -n "$x" ]; > mv $i $x; > fi; > done;
thanks!code:> in *.html; > x=$( echo $i | grep ')' | sed 's/)/\-/g' ); > if [ -n "$x" ]; > mv $i $x; > fi; > done;
hi minigilani.
can use 'rename' , solve couple of runs:
hope helps.code:rename 's/\(//g' * rename 's/\)//g' *
regards.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Mass Rename - fix this script please
Ubuntu
Comments
Post a Comment