The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Using sed to print from the bottom up?
.
User Name
Remember Me?
Password
google site
Forums
Register
Blog
Man Pages
Forum Rules
Links
Albums
FAQ
Users
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
Using sed to print from the bottom up?
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
11-17-2008
summer_cherry
Registered User
Join Date: Jun 2007
Location: Beijing China
Posts: 1,133
Code:
sed
-n '1{ h } 1 !{ x H } ${ x H p }' filename
summer_cherry
View Public Profile
Find all posts by summer_cherry