migrateini 500 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. if [ -n "$1" ] ; then
  3. echo Please change to the directory you want to convert and run the script there without any command line argument!
  4. exit 1
  5. fi
  6. echo
  7. echo Press ENTER to convert all ini files under the current directory:
  8. echo `pwd`
  9. echo
  10. read WAIT
  11. find . -name "*.ini" >inifiles.lst
  12. echo The following files will be checked/modified:
  13. cat inifiles.lst | less
  14. echo
  15. echo Press ENTER to start the conversion, or CTRL-C to quit.
  16. read WAIT
  17. perl `dirname $0`/migrateini.pl inifiles.lst