The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
How to insert at a particular position in flat file
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
:
How to insert at a particular position in flat file
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
7
(
permalink
)
08-07-2007
akdwivedi
Registered User
Join Date: Aug 2007
Posts: 8
Quote:
Originally Posted by
lorcan
Code:
awk -F'~' 'BEGIN{OFS="~";}{ if ($4 != 4){$4=4;} print }' your_file
Thanks a lot this works.
Abhi.
akdwivedi
View Public Profile
Visit akdwivedi's homepage!
Find all posts by akdwivedi