9a2323655a9b

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 09 May 2022 22:53:04 -0400
parents e4f2a344258e
children 2fb2516b42a4
branches/tags (none)
files bin/isbinary

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/isbinary	Mon May 09 22:53:04 2022 -0400
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+grep -om1 '' "$1" | grep '^Binary' >/dev/null