view bin/acut @ 297:5e08e6db47ad

add another digit or two (segment #) to key for r_t
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Mon, 05 May 2025 20:57:30 +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/\$/,\$}\}