The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 04-25-2007
IHulky IHulky is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 4
Quote:
Originally Posted by ghostdog74
you can use awk? say you only have that line in a file
Code:
# awk -F ";" 'OFS=";"{$5=4;print}' file
PRIHDR;2809999444;2007 6.1;20070423;4;;4021473000003;;4021473000003;8714231530688;EUR;;
That worked perfectly thanks, can you tell me how to keep the command on the first line. In the lines below some characters have been altered to 4.

If it is any helpfull only the first line starts with PRIHDR

Thanks