Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^2: chomping the output of

by LanX (Chancellor)
on Sep 09, 2012 at 21:28 UTC ( #992628=note: print w/ replies, xml ) Need Help??

in reply to Re: chomping the output of
in thread chomping the output of

Hi Ken,

thanks for your solution, but I wanna use those functions in any place not only at start of line.


rm grep {/.pl$/} ls

If you wanna implement (start of line) aliases, you should simply us "!!"

DB<112> =du !!du DB<113> du /tmp 8 /tmp/pulse-lanx 4 /tmp/virtual-lanx.AqXwcf ... DB<114> $DB::alias{du} => "s\adu\a!!du\a"

!! cmd Run cmd in a subprocess (reads from DB::IN, writes to DB:: +OUT) See 'O shellBang' too.

Cheers Rolf

) Yes I could use the file-glob <*> instead, but this is only an example for chaining commands

Comment on Re^2: chomping the output of
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2015-11-25 11:34 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (674 votes), past polls