5 ms·
A more general case would be: How to change a pattern in a bunch of file names from X to Y: for i in *X*; do mv $i ${i/X/Y}; done
by mitechka 17y ago
A more general case would be: How to change a pattern in a bunch of file names from X to Y:
for i in *X*; do mv $i ${i/X/Y}; done
- ori_b 17y agoOr just use 'rename': $ rename s/foo$/bar/ *foo