Peng Yu
2016-11-09 14:49:45 UTC
Hi, C has ungetc(). Is there a way to to peek stdin buffer in bash?
(This can be useful if I want to do something depending on the first
initial lines, otherwise I will need to write stdin to file or use
tee, either of which are as efficient as peeking the stdin buffer)
Thanks.
(This can be useful if I want to do something depending on the first
initial lines, otherwise I will need to write stdin to file or use
tee, either of which are as efficient as peeking the stdin buffer)
Thanks.
--
Regards,
Peng
Regards,
Peng