grep beginning of file?

Posted by user13743 on Super User See other posts from Super User or by user13743
Published on 2010-03-12T19:16:05Z Indexed on 2010/03/12 19:17 UTC
Read the original article Hit count: 392

Filed under:
|
|

In a linux shell, I want to make sure that a certain set of files all begin with <?, having that exact string and no other characters at the beginning. How can I grep or use some other to express "file begins with"?

© Super User or respective owner

Related posts about grep

Related posts about command-line