You are subscribed to this thread Need help create a bash script to edit CSV File

Discussion in 'Programming/Scripts' started by imkornhulio, Aug 19, 2008.

  1. imkornhulio

    imkornhulio New Member

    i need to edit 4th field in the CSV file (i need to subtract 5 from whatever number is their in the fourth field, if the number is negative then replace it with 0)
    The separator is ,

    I tired using awk but i am not familiar with it

    Please help
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You could use cut. See
    Code:
    man cut
     

Share This Page