in reply to Re^3: oneliner cat like capability
in thread oneliner cat like capability
... 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
|
|---|