You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/script/convert-to-typescript.sh

13 lines
286 B
Bash

#!/bin/bash
in_data_file="$1"
in_timing_file="$2"
out_data_file="$3"
out_timing_file="$4"
echo '# Foo' >$out_data_file
bzip2 -c -d $in_data_file >>$out_data_file
(echo 0.0; bzip2 -c -d $in_timing_file | awk '{ print $2; print $1 }' | head -n -1) | xargs -L 2 echo >$out_timing_file