You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
285 B

  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