$ while read i; do [ ${#i} -gt 72 ] && echo "$i"; done < /path/to/fileFilter out lines of input that contain 72, or fewer, characters.
This uses bash only. ${#i} is the number of characters in variable i.
by David Winterbottom (codeinthehole.com)
from All commands http://ift.tt/NwUPFj
No comments:
Post a Comment