Read characters from a text file using bash

Posted by Simon Hodgson on Stack Overflow See other posts from Stack Overflow or by Simon Hodgson
Published on 2009-06-10T11:16:11Z Indexed on 2010/03/23 8:53 UTC
Read the original article Hit count: 404

Filed under:
|
|

Does anyone know how I can read the first two characters from a file, using a bash script. The file in question is actually an I/O driver, it has no new line characters in it, and is in effect infinitely long.

© Stack Overflow or respective owner

Related posts about linux

Related posts about bash