If the input file is even larger and you have a lot of RAM, use your favorite programming language and call mmap() syscall.
If the input file is even larger and you have a lot of RAM, use your favorite programming language and call mmap() syscall.