view bin/acut @ 218:d19cd5fe0e06

add percentage of non-latin by crawl table
author Henry Thompson <ht@markup.co.uk>
date Tue, 20 Feb 2024 15:23:47 +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/\$/,\$}\}