bash - How to remove part of filename and add extension programmatically? -
I have hundreds of files in such a folder like:
index.html? Tab = this is - File name
I would like to remove the "index.html? Tab =" part and add the extension ".txt" to all the files. How can I use this Unix Command Line Tools (I am using MacOSX 10.6.2)?
In Bash,
i for index.html \ tab = =; MV "$ i" "$ {i: 15} .txt"; Done
Comments
Post a Comment