The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
Sequence number generation on a key column
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
Sequence number generation on a key column
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
03-27-2008
sbasetty
Registered User
Join Date: Sep 2006
Posts: 75
I worked great
awk 'BEGIN { n = 100} { if ($1!= prev) { n++ } prev = $1; print $1,$2,n }'
Thanks a lot
sbasetty
View Public Profile
Find all posts by sbasetty