Y
Hacker News
new
|
ask
|
show
|
jobs
by
mitechka
6217 days 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
1 comments
ori_b
6217 days ago
Or just use 'rename':
$ rename s/foo$/bar/ *foo
link