within workdir I have many filles with the names in the following format:
7000_grid12_10_lig_cne_767_lig.dlg
I need one line sed (or other shell utility) expression suitable to substitute _grid12_ to _
, so the filename become
7000_10_lig_cne_767_lig.dlg
I've tried to use rename for all filles but it did not work (verbose found nothing)
rename -v 's/_grid12_/_/' *.dlg
rename
instead ofperl-rename
– Arkadiusz Drabczyk Oct 12 '20 at 10:14