[darcs-users] Re: more feedback on binary file detection
Ralph Corderoy
ralph at inputplus.co.uk
Thu Dec 9 15:55:44 UTC 2004
Hi Mark,
> > Can we have the output of
> >
> > od -An -w1 -td1 -v $file | sort -n | uniq -c | pr -t --columns=4
>
> Oh, some new unix commands to try. :) I really wanted to try this, but
> FreeBSD doesn't support this syntax.
>
> The 'od' command is present, but lacking the '-w' flag, which I
> couldn't find the equivalent to. Also, the 'pr' command is missing,
> which I just took out of the pipeline.
OK, the -w1 means one byte per line. Try this instead.
od -An -td1 -v $file | sed 's/ */x/g' | tr x '\012' | grep . |
sort -n | uniq -c
Cheers,
Ralph.
More information about the darcs-users
mailing list