The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Sed options
.
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
:
Sed options
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
03-18-2009
Franklin52
Moderator
Join Date: Feb 2007
Location: The Netherlands
Posts: 4,962
Try this:
Code:
awk '/seqnum/{$NF=++i}1' file
Regards
Franklin52
View Public Profile
Find all posts by Franklin52