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 -->
#
6
(
permalink
)
08-07-2007
akdwivedi
Registered User
Join Date: Aug 2007
Posts: 8
Quote:
Originally Posted by
jacoden
Try this..
Code:
awk -F"~" '{if ($4==0) $4=4; print $0;}' filename
Hi Jacoden
I tried it , but i have lost my de-limiters '~' and got only space instead.
Abhi.
akdwivedi
View Public Profile
Visit akdwivedi's homepage!
Find all posts by akdwivedi