migratened 501 B

1234567891011121314151617181920212223
  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 NED files under the current directory:
  8. echo `pwd`
  9. echo
  10. read WAIT
  11. find . -name "*.ned" >nedfiles.lst
  12. echo The following files will be checked/modified:
  13. cat nedfiles.lst | less
  14. echo
  15. echo Press ENTER to start the conversion, or CTRL-C to quit.
  16. read WAIT
  17. perl `dirname $0`/migratened.pl nedfiles.lst