Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #92898

Re: Request help -- odd sprintf, fprintf issue

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: Request help -- odd sprintf, fprintf issue
Date 2016-08-29 14:30 -0700
Organization None to speak of
Message-ID <lntwe3b6va.fsf@kst-u.example.com> (permalink)
References <e9765d0c-e510-41ee-9b72-02a85734d45d@googlegroups.com> <ln1t17cwp8.fsf@kst-u.example.com> <slrn3vfsns94hc.iik.ike@iceland.freeshell.org>

Show all headers | View raw


Ike Naar <ike@iceland.freeshell.org> writes:
> On 2016-08-29, Keith Thompson <kst-u@mib.org> wrote:
>> View the output file with some tool that shows its contents
>> unambiguously, such as `cat -A` or `od -c`.
>
> I've noticed that not all versions of 'cat' endorse the '-A' option,
> for a 'cat' that doesn't, try 'cat -vet'.

Quite right.  I think `cat -A` is a GNU coreutils feature, so it will be
available on most Linux-based systems.  I think the BSD-based `cat` on
Mac OSX doesn't support it.

`hd` or `hexdump` might also be a good choice (if available).

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Request help -- odd sprintf, fprintf issue dakupoto@gmail.com - 2016-08-28 23:58 -0700
  Re: Request help -- odd sprintf, fprintf issue gazelle@shell.xmission.com (Kenny McCormack) - 2016-08-29 08:09 +0000
  Re: Request help -- odd sprintf, fprintf issue Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-08-29 10:30 +0100
  Re: Request help -- odd sprintf, fprintf issue BartC <bc@freeuk.com> - 2016-08-29 10:48 +0100
  Re: Request help -- odd sprintf, fprintf issue Brett Dong <brett.browning.dong@gmail.com> - 2016-08-29 18:15 +0800
  Re: Request help -- odd sprintf, fprintf issue Dutch Ingraham <spikeheron@att.net> - 2016-08-29 08:21 -0500
  Re: Request help -- odd sprintf, fprintf issue Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2016-08-29 09:10 -0600
  Re: Request help -- odd sprintf, fprintf issue Keith Thompson <kst-u@mib.org> - 2016-08-29 10:27 -0700
    Re: Request help -- odd sprintf, fprintf issue Ike Naar <ike@iceland.freeshell.org> - 2016-08-29 19:51 +0000
      Re: Request help -- odd sprintf, fprintf issue Keith Thompson <kst-u@mib.org> - 2016-08-29 14:30 -0700
        Re: Request help -- odd sprintf, fprintf issue Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-08-30 10:56 +0100

csiph-web