Re: A bone to pick...
On Sun, 5 Nov 1995, Thomas Kocourek wrote:
> # getdir - a simple directory extraction tool
>
> cat $1 | tr -cs '[\0[:print:]]' '[\001*]' | tr -d '\001' | \
> tr '\0' '\n' | grep "/" | more
>
> # end of getdir ================================== enjoy!
> ===============================
(getdir above reformatted by me to fit in 80 columns)
Not only did you send this message to the wrong list, you wrote an overly
complicated script.
the "cat | tr | tr | tr" sequence can be replaced by the existing utility
"strings".
e.g.
strings -a /usr/bin/blahblahblah | grep / | less
Craig
--
cas@muffin.pronet.com cas@muffin.apana.org.au
* Unix Consulting: Installation, Configuration, & Support. *
* --- Also, contact me if you need your Dos/Win/OS2 LAN connected to --- *
* --- the Internet. --- *
Reply to: