Timeline for How do I change the extension of multiple files?
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Sep 1, 2023 at 12:01 | comment | added | Markus Dutschke |
as a oneliner renaming .mta -> .sta. Does not fail, if no .mta files are present: for f in `ls *.mta 2> /dev/null`; do mv "$f" "`basename "$f" .mta`.sta"; done
|
|
| Feb 14, 2022 at 18:37 | comment | added | Henrik Albrechtsson | This works perfectly fine for me! 😃 | |
| Oct 29, 2020 at 10:53 | history | edited | fra-san | CC BY-SA 4.0 |
`basename '$x'` prints the literal $1
|
| Feb 18, 2015 at 7:39 | history | answered | daniel kullmann | CC BY-SA 3.0 |