public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Florian Philipp <lists@binarywings.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [OT] find lines in text file by length
Date: Sat, 29 Jan 2011 16:22:54 +0100	[thread overview]
Message-ID: <4D4430CE.6060707@binarywings.net> (raw)
In-Reply-To: <20110129150102.GA30755@math.princeton.edu>

[-- Attachment #1: Type: text/plain, Size: 481 bytes --]

Am 29.01.2011 16:01, schrieb Willie Wong:
> This is way OT, but I hope someone here can give me a quick answer:
> 
> I have a text-file. Individual lines of it run from 10 to several
> thousand characters in length. Is there a simple* command that allows
> me to only display the lines that are, say, at least 300 characters
> long?
> 
> Thanks in advance, 
> 
> W
> 
> 
> * simple of course includes appropriate incantations of sed/awk/perl/etc

egrep '.{300,}'


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

      parent reply	other threads:[~2011-01-29 15:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-29 15:01 [gentoo-user] [OT] find lines in text file by length Willie Wong
2011-01-29 14:57 ` Etaoin Shrdlu
2011-01-29 15:08   ` Etaoin Shrdlu
2011-01-29 15:41     ` Willie Wong
2011-01-29 15:17 ` Petri Rosenström
2011-01-29 15:22 ` Florian Philipp [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D4430CE.6060707@binarywings.net \
    --to=lists@binarywings.net \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox