CodeFaster • 108 implied HN points • 25 Jul 23
- The Unix one-liner uses commands like find, grep, xargs, and math-sum to get total minutes of audio files.
- The find command lists all files and directories in the current location.
- The xargs -L 1 mp3-minutes command calculates the duration in minutes for each mp3 file and then sums up the total duration using math-sum.