Files
thomasasfk_drs2dd/resources/drs/README.md
T
544146 48f93de564 Clean up code a little
- Move duck blocks down, they were too high
- Change timing on jump notes, 1/8th to allow user to jump over
- Change timing on duck blocks, 1/16h to allow user to duck under on beat
- Move jump note blocks down into the ground, so they're easy to jump over
- Shorten song duration by 10 seconds, so you don't wait at the end for 10 seconds
- Add more metadata to the files
2023-09-19 21:32:01 +01:00

1.5 KiB

# Find all files in the current directory and its subdirectories, and list only the file extensions, sorted uniquely.
find . -type f | sed 's/.*\.//' | sort -u
# Find all XML files in the current directory and its subdirectories.
find . -type f -name "*.xml"
# Count the number of XML files in the current directory and its subdirectories.
find . -type f -name "*.xml" | wc -l
# Count the number of M4A audio files in the current directory and its subdirectories.
find . -type f -name "*.m4a" | wc -l
# Find all XML files in the current directory and its subdirectories, then filter those that have a pattern like '_[0-9][a-zA-Z].xml' at the end, sort them, and list them uniquely.
find . -type f -name '*.xml' | grep -Eo '_[0-9][a-zA-Z]\.xml$' | sort | uniq
# Find all files named "song.json" in the current directory and its subdirectories, and remove them.
find . -type f -name "song.json" -exec rm -f {} \;
# Find all M4A audio files in the current directory and its subdirectories, and convert them to ogg format using ffmpeg.
find . -type f -name "*.m4a" -exec sh -c 'ffmpeg -y -i "$1" "${1%.m4a}.ogg"' sh {} \;
# remove 10 seconds from all ogg files
find . -type f -name "*.m4a" -exec sh -c 'DURATION=$(ffprobe -i "$0" -show_entries format=duration -v quiet -of csv="p=0"); TRIM_TIME=$(awk "BEGIN {print $DURATION - 10}"); ffmpeg -ss 0 -t $TRIM_TIME -i "$0" "${0%.m4a}.ogg"' {} \;