view bin/acut @ 294:cc2945816b75

job index arg to doit, slightly better diagnostic output
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 22 Apr 2025 14:32:07 +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/\$/,\$}\}