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