Can you give us a little more to be going on with? cat will 'stream' your file and can be redirected elsewhere. Presumably that's not what you require?
To Unix, ALL files are just a stream of characters. There is no inherent concept of a record. A line-feed (LF) that terminates a line is just another character in the stream and must be interpretted by the application reading it as an end of record character.
So [tt]cat[/tt] is the correct answer to stream a file. Maybe also [tt]dd[/tt] depending on what you're doing.
Or, if you want it displayed one character at a time, maybe...
Code:
fold -w 1 /input/file
This looks like a stream of characters, but it's actually adding a LF after every character so it appears as a single character stream.
Please try to define what you're looking for more clearly.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.