#!/bin/sh # Output frequent words (WITHOUT counts) in merge of given files. freq "$@" | awk '{print $2}' # just print second field (the words, not the counts) ## or: freq "$@" | tr -d '0-9 ' ## or: freq "$@" | while read COUNT WORD ; do echo $WORD ; done