mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-09-06 20:50:29 +02:00
14 lines
285 B
Bash
Executable File
14 lines
285 B
Bash
Executable File
#!/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
|