On 04/19/2014 04:48 AM, Bob Proulx wrote:
> Rather than cut and using an exact number of characters I prefer to
> use awk to cut by fields.  That way it works with all of the *sum
> programs.
> 
>   $ md5sum /dev/null | awk '{print$1}'

And there are many other ways:

  # using the field option of cut:
  $ md5sum /dev/null | src/cut -d ' ' -f 1
  d41d8cd98f00b204e9800998ecf8427e

  $ md5sum /dev/null | sed 's/ .*$//'
  d41d8cd98f00b204e9800998ecf8427e

etc.

Therefore 80:20 against a new option from me, too.

Have a nice day,
Berny

Reply via email to