Re: Sed command, Insert text in front of existing line
From: Alan Connor (xxxxxx_at_xxxx.xxx)
Date: 08/21/03
- Next message: rakesh sharma: "Re: Removing rogue ciarraige returns in data file"
- Previous message: J Krugman: "Re: Need help with /usr/bin/screen startup"
- In reply to: joe_at_invalid.address: "Re: Sed command, Insert text in front of existing line"
- Next in thread: joe_at_invalid.address: "Re: Sed command, Insert text in front of existing line"
- Reply: joe_at_invalid.address: "Re: Sed command, Insert text in front of existing line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 21 Aug 2003 21:28:56 GMT
On Thu, 21 Aug 2003 19:18:02 GMT, joe@invalid.address <joe@invalid.address> wrote:
>
> There's a section in the FAQ about why echo shouldn't be used to
> output something you get from an external source:
>
> Basically, echo behaves inconsistently from shell to shell. Sometimes
> it expands escape characters unconditionally, sometimes it needs a
> command line option, etc.
>
> Joe
Interesting. *I* don't have "print" except for this, which
is aliased to "print":
NAME
mcprint - ship binary data to printer
SYNOPSIS
#include <curses.h>
int mcprint(char *data, int len);
DESCRIPTION
This function uses the mc5p or mc4 and mc5 capabilities,
if they are present, to ship given data to a printer
attached to the terminal.
Note that the mcprint code has no way to do flow control
with the printer or to know how much buffering it has.
Your application is responsible for keeping the rate of
writes to the printer below its continuous throughput rate
(typically about half of its nominal cps rating). Dot-
which is not what you were referring to. No binary.
The printf command is very sharp compared to the echo command, all right.
I need to learn how to use it better.
*And* get your FAQ, which is not in my newsspool.
Is there a URL?
Alan C
- Next message: rakesh sharma: "Re: Removing rogue ciarraige returns in data file"
- Previous message: J Krugman: "Re: Need help with /usr/bin/screen startup"
- In reply to: joe_at_invalid.address: "Re: Sed command, Insert text in front of existing line"
- Next in thread: joe_at_invalid.address: "Re: Sed command, Insert text in front of existing line"
- Reply: joe_at_invalid.address: "Re: Sed command, Insert text in front of existing line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|