Commit: d5a3e91bb3202c5a8d7da49c2549d5b8f16cc647 Parent: c9ec795e94e6c5df91bf743c50482712cdc331cb Author: Randy Palamar Date: Fri, 14 Jul 2023 05:46:07 -0600 add srt-renumber script Diffstat:
A | bin/srt-renumber | | | 12 | ++++++++++++ |
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/bin/srt-renumber b/bin/srt-renumber @@ -0,0 +1,12 @@ +#!/bin/awk -f + +# renumbers an SRT file + +BEGIN { count = 1 } + +!/^[0-9]+$/ { + print + next +} + +{ print count++ }