
22 Mar
2024
22 Mar
'24
2:38 p.m.
D. Hugh Redelmeier wrote on 2024-03-22 06:56:
What you want is rename .sh '' *.sh which means for each filename matched by *.sh change every occurrence of ".sh" in its name to '' (empty)
Ah, that's a clever idea - the glob at the end so that rename can grab the first two parameters and apply those to all the remaining params (list of files to operate on). Thanks rb