Re: Unix Tools

From: Gregory L. Hansen (glhansen_at_steel.ucs.indiana.edu)
Date: 10/24/03

  • Next message: Stephane CHAZELAS: "Re: Unix Tools"
    Date: Fri, 24 Oct 2003 16:35:07 +0000 (UTC)
    
    

    In article <3F99414A.5070803@Lucent.com>,
    Ed Morton <mortonAVOIDINGSPAM@Lucent.com> wrote:
    >
    >
    >On 10/24/2003 9:12 AM, Gregory L. Hansen wrote:
    ><snip>
    >> And I have a fat Unix book that describes some of that stuff,
    >> like sed and awk but not Perl, that I plan to go through when I get Linux
    >
    >You could download cygwin (www.cygwin.org) while you're waiting...

    A cygmac would actually be more useful to me.

    >
    >> But Perl has been described as doing more than sed and awk
    >> together, removing the need to pipe things around between the two
    >
    >You never need to do pipe things between sed and awk since awk can do anything
    >sed can do. In the context of sed/awk solutions: for small things that sed can
    >do easily, only use sed, and for the rest only use awk.

    Okay.

    >
    > and the
    >> shell, so I wondered whether I even need to care about them. One thing I
    >> have in mind is a fairly elaborate e-mail filter that can keep tallies,
    >> filter on attachments, send notifications of spam deletions, recognize
    >> spoofed words like pe.n!s, which are things that slocal on my Sun shell
    >> account can't do, so off-hand Perl seemed like the one to use, based
    >> strictly on what I've read about it but no knowledge of it.
    >
    >No, procmail, formail and/or spamassasin are some tools for that job.

    None of those exist on my Sun account, only slocal, and I don't have a lot
    of disk space there. And rolling my own would likely be more
    instructional, so I thought I'd give it a try.

    -- 
    "Let us learn to dream, gentlemen, then perhaps we shall find the 
    truth... But let us beware of publishing our dreams before they have been 
    put to the proof by the waking understanding." -- Friedrich August Kekulé
    

  • Next message: Stephane CHAZELAS: "Re: Unix Tools"

    Relevant Pages

    • Re: Text Substitution Spanning Multiple Lines
      ... I'm trying to find the right tool to do text substitutions over ... All that is left to do is to get rid of the final trailing comma in the ... And as far as I can tell both sed and awk only ... then pipe your previous output to the following ...
      (comp.unix.shell)
    • Re: Unix Tools
      ... >> like sed and awk but not Perl, that I plan to go through when I get Linux ... >You never need to do pipe things between sed and awk since awk can do anything ... which are things that slocal on my Sun shell ... "Let us learn to dream, gentlemen, then perhaps we shall find the ...
      (comp.os.linux.setup)
    • Re: Obtaining filename after receiving file from pipe
      ... I extract zip compressed data from an archive and pipe the output into ... Right, because gawk is operating on an input stream, not on a file. ... Versions don't matter in this case as no awk would have access to the file name ...
      (comp.lang.awk)
    • Re: rules on stdout and stderr
      ... >get two pipes to connect the program to awk, but then which does it read ... If the program writes more data than will fit in a pipe to ... You would push stderr into one ... other one via the usual piping mechanism. ...
      (comp.unix.shell)
    • Re: tail does not exit
      ... A bug indeed... ... The output from tail/input from awk went all at once, ... Tail tries to write to the pipe, ... it terminates. ...
      (freebsd-questions)