view bin/acut @ 291:70da637d1402

accommodate to change to digits for record type, minor tweaks, change format of input ranges, still a bug, in 11/...540.warc.gz
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 09 Apr 2025 17:15:40 +0100
parents 75e0d0013da0
children
line wrap: on
line source

#!/bin/bash
# Use awk to do cut -d whitespace
declare ff=("$@")
join_array() { local IFS=\$; echo "$*"; }
s=$(join_array "${ff[@]}")
awk '{print '\$${s/\$/,\$}\}