Mercurial > hg > pmhd
comparison ffmpeg/tools/clean-diff @ 11:f445c3017523
new files
author | Yading Song <yading.song@eecs.qmul.ac.uk> |
---|---|
date | Sun, 21 Apr 2013 11:16:23 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:6840f77b83aa | 11:f445c3017523 |
---|---|
1 #!/bin/sh | |
2 sed '/^+[^+]/!s/ /TaBBaT/g' |\ | |
3 expand -t $(seq -s , 9 8 200) |\ | |
4 sed 's/TaBBaT/ /g' |\ | |
5 sed '/^+[^+]/s/ * $//' |\ | |
6 tr -d '\015' |\ | |
7 tr '\n' '°' |\ | |
8 sed 's/\(@@[^@]*@@°[^@]*\)/\n\1/g' |\ | |
9 egrep -v '@@[^@]*@@°(( [^°]*°)|([+-][[:space:]]*°)|(-[[:space:]]*([^°]*)°\+[[:space:]]*\5°))*$' |\ | |
10 tr -d '\n' |\ | |
11 tr '°' '\n' |