PDA

View Full Version : You are subscribed to this thread Need help create a bash script to edit CSV File


imkornhulio
19th August 2008, 18:11
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

falko
20th August 2008, 15:24
You could use cut. See
man cut