lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 06 Feb 2007 09:49:47 -0500
From:	Mark Lord <lkml@....ca>
To:	Oleg Verych <olecom@...wer.upol.cz>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Linus Torvalds <torvalds@...ux-foundation.org>,
	Jesper Juhl <jesper.juhl@...il.com>,
	Roman Zippel <zippel@...ux-m68k.org>,
	Sam Ravnborg <sam@...nborg.org>,
	William Stearns <wstearns@...ox.com>,
	Martin Schlemmer <azarah@...feratu.za.org>
Subject: Re: [patch 1/3, resend] scripts: replace gawk, head, bc with shell,
 update

Oleg Verych wrote:
> scripts: replace gawk, head, bc with shell, update
> 
>   Replacing overhead of using some (external) programs
>   instead of good old `sh'.
...
> -    t4=`echo $t3 | gawk '{ print $1 }'`
> -    t5=`echo $t1 | gawk '{ print $1 }'`
> -    t6=`echo $t4 - $t5 | tr a-f A-F`
> -    t7=`( echo  ibase=16 ; echo $t6 ) | bc`
> +    t4=`field 1 $t3`
> +    t5=`field 1 $t1`
> +    t6=`printf "%lu" $((0x$t4 - 0x$t5))`
...

>From where do we obtain this new "field" command ?

Cheers
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ