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

Re: chomping the output of

by kcott (Chancellor)
on Sep 09, 2012 at 05:11 UTC ( #992557=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    $ cat ~/.perldb
    for (qw{pwd date ls ps}) {
            = 's{^($_.*)$}{chomp(my $out = qx{$1}); print {$DB::OUT} $out}
  2. or download this
    $ perl -d -e 1
      501 74528 74527   0 23Aug12 ttys007    0:00.04 -bash
      DB<7> q
  3. or download this
    $ cat ~/.perldb
    $DB::alias{$_} = 's{^$_(.*)$}{p qx{$_$1 | xargs echo -n}}' for qw{pwd 
  4. or download this
    $ perl -d -e 1
      DB<4> date "+%Y-%m-%d"
      DB<5> q

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://992557]
[marto]: it literally doesn't work. Also, via their citrix interface theres no way to open attachments, or upload an attachment for sending. The company policy is that you email you work account from a personal one, and forward it on from there :/
[Corion]: marto: Ouch :/ And having that as a (written) policy strikes me as inane...
[Corion]: So maybe you can use that momentum in the household instead, or use it for taxes or other chores ;)

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2018-01-16 08:55 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (175 votes). Check out past polls.