From: | Florian Philipp <lists@×××××××××××.net> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] [OT] find lines in text file by length | ||
Date: | Sat, 29 Jan 2011 15:25:01 | ||
Message-Id: | 4D4430CE.6060707@binarywings.net | ||
In Reply to: | [gentoo-user] [OT] find lines in text file by length by Willie Wong |
1 | Am 29.01.2011 16:01, schrieb Willie Wong: |
2 | > This is way OT, but I hope someone here can give me a quick answer: |
3 | > |
4 | > I have a text-file. Individual lines of it run from 10 to several |
5 | > thousand characters in length. Is there a simple* command that allows |
6 | > me to only display the lines that are, say, at least 300 characters |
7 | > long? |
8 | > |
9 | > Thanks in advance, |
10 | > |
11 | > W |
12 | > |
13 | > |
14 | > * simple of course includes appropriate incantations of sed/awk/perl/etc |
15 | |
16 | egrep '.{300,}' |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |