#! /bin/zsh # # this file: # https://dataswamp.org/~incal/scripts/csw-1 local f=$1 awk 'length > max_length { max_length = length; longest_line = $0 } END { print longest_line }' $f