QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Renaming a whole series of files |
Ref. No. |
QNX.000009374 |
Category(ies) |
Utilities |
Issue |
In QNX4, we have a directory that has over 100 HTML files that end in .htm that we want to rename to .html.
What is an easy way to do this?
|
Solution |
find . -type f -name '*.htm' -exec 'mv {} {3}html' ;
This will look from the current directory (it will search all the subdirectories) for files (not links) that end end with *.htm and rename them to *.html endings.
For example, index.htm would turn into index.html |
|