I have a set of image like that :
01-12_13:20:12_1366x768.png 01-12_13:20:46_1366x768.png 01-12_13:21:01_1366x768.png 01-12_13:21:06_1366x768.png
01-12_13:20:40_1366x768.png 01-12_13:20:47_1366x768.png 01-12_13:21:02_1366x768.png 01-12_13:21:07_1366x768.png
01-12_13:20:42_1366x768.png 01-12_13:20:49_1366x768.png 01-12_13:21:03_1366x768.png 01-12_13:21:08_1366x768.png
01-12_13:20:44_1366x768.png 01-12_13:20:59_1366x768.png 01-12_13:21:04_1366x768.png 01-12_13:21:10_1366x768.png
01-12_13:20:45_1366x768.png 01-12_13:21:00_1366x768.png 01-12_13:21:05_1366x768.png
I need to replace every :
to _
. How can I do that using bash commands ?
(note : i love when everything is compact and one-lined)
:
. tried insu
and changing the quote to single but still can't run that command – vdegenne Jan 12 '17 at 13:19rename : _ *.png
, and myman rename
doesn't seem to accept the syntax you provided, what distro are you using ? – vdegenne Jan 12 '17 at 13:25rename
is not portable, it exists in different forms in different distributions. Maybe this post is useful. – andreatsh Jan 12 '17 at 14:11prename
. – JJoao Jan 12 '17 at 14:33rename
. The one we are discussing here is written by Larry Wall, in the language perl. – ctrl-alt-delor Jan 12 '17 at 15:36