You also may try the following funny onliner script
perl -pe '$\=$_.$\}{'
Yes, it prints reversed array of lines from STDIN
In reply to Re: basic question:how to print a reversed array from STDIN
by ccn
in thread basic question:how to print a reversed array from STDIN
by brant_chen
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |