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
Post a Comment