The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 08-07-2007
akdwivedi akdwivedi is offline
Registered User
 

Join Date: Aug 2007
Posts: 8
Quote:
Originally Posted by lorcan View Post
Code:
awk -F'~' 'BEGIN{OFS="~";}{ if ($4 != 4){$4=4;} print }' your_file
Thanks a lot this works.

Abhi.
Reply With Quote