
22 Mar
2024
22 Mar
'24
3:52 a.m.
William Park via talk wrote on 2024-03-21 18:27:
for I in *.sh ; do mv ${I} ${I%%.sh} done
That will change 'x.sh' to 'x' without trailing dot.
Ubuntu/Debian distros will include 'rename' where you can use regex. How does `rename` (a Perl program, I believe?) handle globbing and
Exactly what's desired. pathname expansion? i.e. in a folder with 3 files: one.sh, two.sh, file.tar, typing: rename *.sh * means rename gets passed these parameters: one.sh two.sh one.sh two.sh file.tar I'd be curious how they handle that (I expect requiring params to be quoted). Thanks rb