view bin/acut @ 361:97e049b06f69 plus

remove unused imports and declarations, compute FILENO and SEG properly, move local offset to global OFFSET so it's available for the 2nd callback
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Thu, 19 Mar 2026 17:21:51 +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/\$/,\$}\}