====== SED - Print - Print lines of less than N characters ====== For example, to print only lines of less than 65 characters: sed -n '/^.\{65\}/!p' # method 1, corresponds to above sed '/^.\{65\}/d' # method 2, simpler syntax sed -n '/[[:graph:]]\{65\}/!p' # Handles special characters too.