view bin/acut @ 148:ded66be0238c

for use in debugging, see notes and tests 2, 17, merge test
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 04 Oct 2023 18:51:56 +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/\$/,\$}\}