view bin/acut @ 217:c15cef19b584

tld change investigation
author Henry Thompson <ht@markup.co.uk>
date Fri, 16 Feb 2024 16:24:28 +0000
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/\$/,\$}\}