Lugovtsov/project/materials/u02/shorten.sh
2022-11-28 23:17:12 +03:00

4 lines
135 B
Bash
Executable File

#!/bin/sh
#works only for ascii files with headers
#prints every 100th line
cat $1 | sed '1,/Waveform/d' | awk '!(NR%100)||(NR==2)'> $2