view ffmpeg/tools/clean-diff @ 13:844d341cf643 tip

Back up before ISMIR
author Yading Song <yading.song@eecs.qmul.ac.uk>
date Thu, 31 Oct 2013 13:17:06 +0000
parents f445c3017523
children
line wrap: on
line source
#!/bin/sh
sed '/^+[^+]/!s/	/TaBBaT/g' |\
 expand -t $(seq -s , 9 8 200) |\
 sed 's/TaBBaT/	/g' |\
 sed '/^+[^+]/s/ * $//' |\
 tr -d '\015' |\
 tr '\n' '°' |\
 sed 's/\(@@[^@]*@@°[^@]*\)/\n\1/g' |\
 egrep -v '@@[^@]*@@°(( [^°]*°)|([+-][[:space:]]*°)|(-[[:space:]]*([^°]*)°\+[[:space:]]*\5°))*$' |\
 tr -d '\n' |\
 tr '°' '\n'