httpd has asked for the wisdom of the Perl Monks concerning the following question:
I just found how to print lines from specific number till the end:sed -n '$p'
But what regex should I use for printing just a last line? as simple as in sed.# perl -ne 'print if (9../^\n/)' urls.txt http://www.0534343434tutorials.com http://mer3nharing.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: print last line
by choroba (Cardinal) on Apr 08, 2013 at 10:01 UTC | |
|
Re: print last line
by Loops (Curate) on Apr 08, 2013 at 09:57 UTC | |
|
Re: print last line
by kcott (Archbishop) on Apr 08, 2013 at 10:54 UTC | |
|
Re: print last line
by httpd (Novice) on Apr 08, 2013 at 11:12 UTC |