search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
50 views
asked Sr Member 3.9k points 5 8 12

1 Answer

0 votes
UNIX's mv (`move') command won't handle wildcard filenames. However, there's a program called htmaddl (for `HTM-add-"L"'), so you can login and type htmaddl. This will rename all .htm files to .html
If you haven't got this program on your UNIX machine, you can type it into a file called htmaddl: #! /bin/sh for f in *.htm; do base=`basename $f .htm` mv $f $base.html done After saving it and exiting your editor, make it executable by typing the command chmod ugo+x htmaddl Best of all, move it into your ~/bin directory, or ask your WebMeister to put it in /usr/local/bin so everyone can use it.
answered Expert 11.4k points 14 22 28

Related questions

0 votes
1 answer 1.5K views
0 votes
1 answer 14 views
14 views
asked rock Expert 15k points 15 23 30
0 votes
1 answer 81 views
0 votes
1 answer 30 views
0 votes
0 answers 164 views
...