Re: [PATCH] Remove useless uses of cat, and replace with filename arguments or redirection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 05 Jun 2007 18:34:59 -0700 Josh Triplett <josh@xxxxxxxxxxxxxxx> wrote:
>
> -commits=$(cat ../revs | wc -l | tr -d " ")
> +commits=$(wc -l ../revs | tr -d " ")

This is not equivalent, you probably wanted:

commits=$(wc -l <../revs | tr -d " ")

Cheers,
Stephen Rothwell

Attachment: pgpSzYV48EWbG.pgp
Description: PGP signature


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux