summaryrefslogtreecommitdiff
path: root/ffmpeg/compat/plan9/head
diff options
context:
space:
mode:
Diffstat (limited to 'ffmpeg/compat/plan9/head')
-rwxr-xr-xffmpeg/compat/plan9/head10
1 files changed, 10 insertions, 0 deletions
diff --git a/ffmpeg/compat/plan9/head b/ffmpeg/compat/plan9/head
new file mode 100755
index 0000000..2840b2d
--- /dev/null
+++ b/ffmpeg/compat/plan9/head
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+n=10
+
+case "$1" in
+ -n) n=$2; shift 2 ;;
+ -n*) n=${1#-n}; shift ;;
+esac
+
+exec sed ${n}q "$@"