listnodes.sh 285 B

1234567891011121314
  1. #!/bin/bash
  2. echo "Node listing as of "`date` > nodes.txt
  3. for i in *.lua; do
  4. echo -e "\nIn $i:\n" >> nodes.txt
  5. cat $i | grep "minetest.register_node(" | \
  6. sed "s/minetest.register_node(.homedecor:/homedecor:/; s/., {//" | \
  7. sort >> nodes.txt
  8. done
  9. less nodes.txt
  10. rm -f nodes.txt