bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #34020] RFE: Improve handling of sparse files


From: Jaroslav Škarvada
Subject: [bug #34020] RFE: Improve handling of sparse files
Date: Tue, 16 Aug 2011 08:21:44 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:1.9.2.18) Gecko/20110621 Fedora/3.6.18-1.fc14 Firefox/3.6.18

URL:
  <http://savannah.gnu.org/bugs/?34020>

                 Summary: RFE: Improve handling of sparse files
                 Project: grep
            Submitted by: yarda
            Submitted on: Tue 16 Aug 2011 08:21:43 AM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Handling of sparse files should be improved, e.g the following example is
handled by sed, but not by grep:

# cat /proc/meminfo | grep Total
MemTotal:        1017616 kB
SwapTotal:       2064380 kB
VmallocTotal:   34359738367 kB
HugePages_Total:       0

# dd if=/dev/zero of=/tmp/img bs=1 count=0 seek=40G

# grep a /tmp/img 
grep: memory exhausted
# echo $?
2

# sed -n '/a/p' /tmp/img
# echo $?
0

Original ticket:
http://bugzilla.redhat.com/show_bug.cgi?id=729052





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?34020>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]