Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

fprint back slash to UNIX file

18 views
Skip to first unread message

PolyPusher

unread,
Jun 19, 2013, 9:02:24 PM6/19/13
to
Hello,

How do I fprint a back slash to a UNIX file.
For example:

\: Cat

I can do:

/:Cat

Thank you in advance,
Eric

Jean-Marc Bourguet

unread,
Jun 20, 2013, 9:22:26 AM6/20/13
to
PolyPusher <eric.d.fi...@gmail.com> writes:

> Hello,
>
> How do I fprint a back slash to a UNIX file.

To put a back slash in a string, double it. For instance

$ skill
> (printf "\\x\n")
\x
t

--
Jean-Marc
0 new messages