Re: Sed command, Insert text in front of existing line

From: Alan Connor (xxxxxx_at_xxxx.xxx)
Date: 08/21/03


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



Relevant Pages

  • comp.unix.shell FAQ - Answers to Frequently Asked Questions
    ... This FAQ list contains the answers to some Frequently Asked Questions ... It spells "unix" in lower case letters ... The other level is how to write shell scripts. ... if the string being echoed wasn't built into the script ...
    (comp.unix.shell)
  • comp.unix.shell FAQ - Answers to Frequently Asked Questions
    ... This FAQ list contains the answers to some Frequently Asked Questions ... It spells "unix" in lower case letters ... The other level is how to write shell scripts. ... if the string being echoed wasn't built into the script ...
    (comp.unix.shell)
  • Re: Call for input on comp.unix.shell FAQ
    ... >> questions and just tell people to FAQ it. ... The other level is how to write shell scripts. ... How can I remove whitespace characters within file names? ... Why one shouldn't use "echo" in a script? ...
    (comp.unix.shell)
  • Re: Last call for FAQ
    ... >> people don't want their names in the FAQ, ... >> If you don't have a problem with me mentioning you as a contributor, ... It spells "unix" in lower case letters ... One is the use of the shell itself as an interface to the operating ...
    (comp.unix.shell)
  • Re: days difference between two dates
    ... > I think the answers our FAQ gives and the examples it provides ... > one big advantage of shell scripts are that they run on ... > of tools that can be assumed to be installed, but a C compiler, ... > be preferred to a script that is 100% correct but that is hard ...
    (comp.unix.shell)