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

---
Post to this mailing list [email protected]
Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk

Reply via email to