Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display file from back...so the first line will be the last one 3

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
PL
fo example:

1
6
3
d
5


5
d
3
6
1

thanks in advance,
rm.


Is the any command in AIX doing this?

I've found 'rev' command in AIX but it doesn;t do need...
... it reverts:

abcdefghi
123456789

to:

ihgfedcba
987654321


 
sed1liners

Code:
 sed '1!G;h;$!d' file

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top