view bin/clm.sh @ 131:bf943a2f0f37

use printf safely
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Fri, 09 Jul 2021 14:20:51 +0000
parents 5efc3985d513
children d3ef00af2064
line wrap: on
line source

#!/usr/bin/bash
egrep '^Last-Modified: ' | cut -f 2- -d ' ' | tr -d '\r' | { readarray -t a ; IFS=';' ; printf %s "${a[*]}" ; } >> "$1"
echo >> "$1"