Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Using pipes to combine scripts

by artist (Parson)
on Nov 17, 2006 at 13:07 UTC ( [id://584721]=note: print w/replies, xml ) Need Help??


in reply to Using pipes to combine scripts

In Unix world, pipe is used frquently. Here is an example for the web-spell-checker from Wikipedia
curl "http://en.wikipedia.org/wiki/Pipeline_(Unix)" | \ sed 's/[^a-zA-Z ]/ /g' | \ tr 'A-Z ' 'a-z\n' | \ grep '[a-z]' | \ sort -u | \ comm -23 - /usr/dict/words
--Artist

Replies are listed 'Best First'.
Re^2: Using pipes to combine scripts
by blazar (Canon) on Nov 18, 2006 at 08:37 UTC
    Unix world, pipe is used frquently. Here is an example for the web-spell-checker from Wikipedia

    And while we're there, for the benefit of the OP, we may remind that while on the one hand this is one of the things that can make shell programming very powerful, there are generally better ways to "combine perl scripts" (or better, code) within Perl, where, "better" of course depends on the situation, and is in the eye of the beholder. Just to prevent the system 'this|that|thatother' (a.k.a. shell scripting in Perl) syndrome, you know!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://584721]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-19 11:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found