bug-gawk
[Top][All Lists]
Advanced

[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
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]