On Mon, 2005-03-07 at 18:29 -0800, Brian Dessent wrote: > Linda W wrote: > > > hmph...never heard of it (even though I have it installed (*doh!*))... > > Sure take alot more characters to get a simple hex & ascii side-by-side > > dump! How am I gonna remember all that? :-) I often have to use > > the man page to figure out it's the "-C" option on hexdump to do that > > simple feat, but now I need to remember what?...egads! Well if ya'll > > is happy with that, that's fine w/me. > > Add the following to your ~/.profile then: > > alias od="od -A x -v -t x1z" >
$ cat >>.profile <<EOD function od() { if [ -r "$1" ] ;then argline="-A x -v -t x1z -w24 $1" else # Problem with dual evaluation on argline? argline="$*" fi command od $argline argline= } EOD <UNTESTED/> If nothing else; you got the idea... > Now you can type "od foo" and never have to remember the arguments. If > you ever need to execute the "real" od without the added parameters you > can type "o\d" instead. > -- Hannu E K Nevalainen <_garbage_collector_ KANELBULLE telia.com> -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/