Mercurial > hg > cc > cirrus_work
view bin/acut @ 109:52c6a9b0fc8c
loosen must-match criterion in the both-messy case
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Tue, 19 Sep 2023 19:29:41 +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/\$/,\$}\}