by freedomben · 4y ago · 0 comments
[1]: https://robm.me.uk/2013/11/ruby-enp/
-n causes Perl to assume the following loop around your program, which makes it iterate over filename arguments somewhat like sed -n or awk:
LINE:
while (<>) {
... # your program goes here
}
-p causes Perl to assume the following loop around your program, which makes it iterate over filename arguments somewhat like sed: LINE:
while (<>) {
... # your program goes here
} continue {
print or die "-p destination: $!\n";
}
https://linux.die.net/man/1/perlrunhttps://github.com/learnbyexample/Command-line-text-processi...