[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gawk] Fwd: The best way to test the first n character in a file
From: |
Wolfgang Laun |
Subject: |
[bug-gawk] Fwd: The best way to test the first n character in a file |
Date: |
Wed, 18 Sep 2019 21:02:46 +0200 |
Why use /usr/bin/head? The shell's internally defined commands are
preferable.
-W
On Wed, 18 Sep 2019 at 19:25, Peng Yu <address@hidden> wrote:
> Hi,
>
> I want to test if the first n character of a binary file equals some
> given string. I am not sure if awk is good at this. It seems that
> `head` plus shell code should be easier. Is there a good way to do so
> in awk? Thanks.
>
> --
> Regards,
> Peng
>
>
- [bug-gawk] The best way to test the first n character in a file, Peng Yu, 2019/09/18
- Re: [bug-gawk] The best way to test the first n character in a file, Neil R. Ormos, 2019/09/18
- Re: [bug-gawk] The best way to test the first n character in a file, Stephane Chazelas, 2019/09/19
- Re: [bug-gawk] The best way to test the first n character in a file, Peng Yu, 2019/09/19
- Re: [bug-gawk] The best way to test the first n character in a file, Lorenz, 2019/09/19