When searching for string (no regex etc.) in large file less filename
and less -b 1 filename
quits or prints it cannot allocate memory. top
shows less using roughly about 5% of memory before it dies (1 sec interval).
What other tool can I use that supports large files? The file has only 100 mb of logs.
$ less -V
less 458 (GNU regular expressions)
Copyright (C) 1984-2012 Mark Nudelman
OS details:
$ ulimit -a
-t: cpu time (seconds) unlimited
-f: file size (blocks) unlimited
-d: data seg size (kbytes) unlimited
-s: stack size (kbytes) 8192
-c: core file size (blocks) 0
-m: resident set size (kbytes) unlimited
-u: processes 15988
-n: file descriptors 1024
-l: locked-in-memory size (kbytes) 64
-v: address space (kbytes) 2048000
-x: file locks unlimited
-i: pending signals 15988
-q: bytes in POSIX msg queues 819200
-e: max nice 0
-r: max rt priority 0
-N 15: unlimited
$ cat /etc/*rele*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=13.10
ulimit -a
say? – jordanm Feb 6 '14 at 22:40