Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: oneliner cat like capability

by jwkrahn (Abbot)
on Oct 29, 2019 at 20:02 UTC ( [id://11108082]=note: print w/replies, xml ) Need Help??


in reply to Re: oneliner cat like capability
in thread oneliner cat like capability

perl -pe "" dataoutput.txt
perl -pe1 dataoutput.txt

     :)

Replies are listed 'Best First'.
Re^3: oneliner cat like capability
by AnomalousMonk (Archbishop) on Oct 30, 2019 at 04:47 UTC

    ... or  -pe; (update: but see this!)


    Give a man a fish:  <%-{-{-{-<

      ... or -pe;

      Works on Windows, doesn't on POSIX-compatible shells (bash and many others). The semicolon is used by the shell, so it won't be passed to perl. POSIX: Shell Command Language:

      Sequential Lists

      Commands that are separated by a <semicolon> (';') shall be executed sequentially.

      The format for executing commands sequentially shall be:

      command1 [; command2] ...

      Each command shall be expanded and executed in the order specified.

      Running bash 4 on Linux:

      >bash --version GNU bash, version 4.3.48(1)-release (x86_64-slackware-linux-gnu) Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gp +l.html> This is free software; you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. >perl -pe; No code specified for -e. >

      Alexander

      --
      Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?
Username:
Password:

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

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

    No recent polls found