comparison bin/acut @ 0:2aa53823fb21

new repo
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Sat, 06 Jun 2026 10:19:04 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:2aa53823fb21
1 #!/bin/bash
2 # Use awk to do cut -d whitespace
3 declare ff=("$@")
4 join_array() { local IFS=\$; echo "$*"; }
5 s=$(join_array "${ff[@]}")
6 awk '{print '\$${s/\$/,\$}\}