Hi.
I have a pair of tickets to a concert tonight (March 22) by musician Dan
Hill, tonight at Hugh's Room (Broadview south of Gerrard).
We're sick and can't go.
If you're sure you can use them let me know in private email (not to the
list). First response gets them.
- Evan
---
Post to this
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
| From: Ron / BCLUG via talk
| How does `rename` (a Perl program, I believe?) handle globbing and 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