Mercurial > hg > cc > cirrus_work
view bin/acut @ 246:666069efb0c6
output bytes, pickle and save dict if -p, trim lm value to int
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Thu, 02 Jan 2025 14:51:00 +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/\$/,\$}\}