trying to avoid printing binary files to STDOUT
- From: Rahul <nospam@xxxxxxxxxxxxxx>
- Date: Mon, 9 Mar 2009 17:41:38 +0000 (UTC)
Often, in a bout of great stupidity, I end up catting files I shouldn't.
eg. executibles, files with encoded or encrypted data etc. I assume this is
generically binary / non-text data.
This ends up in me screwing up my terminal unto a unresponsive state with
oodles of junk characters on my screen.
Is there a way to "idiot proof" my shell so that "something" comes in the
way of me doing this? Maybe a wrapper around cat etc. Or a way to get out
of this once my shell starts to hang on those strange characters?
--
Rahul
.
- Follow-Ups:
- Re: trying to avoid printing binary files to STDOUT
- From: Maxwell Lol
- Re: trying to avoid printing binary files to STDOUT
- From: Dave Gibson
- Re: trying to avoid printing binary files to STDOUT
- From: Dan Espen
- Re: trying to avoid printing binary files to STDOUT
- From: Mark Hobley
- Re: trying to avoid printing binary files to STDOUT
- From: Tim Greer
- Re: trying to avoid printing binary files to STDOUT
- From: David W. Hodgins
- Re: trying to avoid printing binary files to STDOUT
- From: Bill Marcum
- Re: trying to avoid printing binary files to STDOUT
- From: Andrew Halliwell
- Re: trying to avoid printing binary files to STDOUT
- Prev by Date: binutils-2.19.51.0.2: configure: C compiler cannot create executables
- Next by Date: Re: Linux distribution tailored for netbooks?
- Previous by thread: binutils-2.19.51.0.2: configure: C compiler cannot create executables
- Next by thread: Re: trying to avoid printing binary files to STDOUT
- Index(es):
Relevant Pages
|