UNIX grep command syntax for lines containing at least 35 characters -


i'm trying print lines contain, let say, @ least 35 characters, file.

how can this?

grep not best tool job.

you write:

grep ................................... filename 

or use 1 of more sophisticated regular expression features mentioned in other answers (if grep supports them). awk:

awk 'length >= 35' filename 

or perl:

perl -e 'print if length >= 35' filename 

would more appropriate.


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -