Skip to content
Sih Sîng-hông薛丞宏 edited this page Mar 12, 2021 · 3 revisions

算總時數指令

find .  -name '*.wav' -exec sox -t wav {}  -n stat  \; 2>&1 \
  | grep Length \
  | sed -n 's#^Length (seconds):[^0-9]*\([0-9.]*\)$#\1#p' \
  | paste -sd+ \
  | bc
Clone this wiki locally