Search Results

Search: Posts Made By: pcboss
Forum: Linux 01-19-2008
11,293
Posted By pcboss
Thanks
I can achieve what I need by redirecting to another file, and then renameming those files...

Thanks a lot.... :b:
Forum: Linux 01-19-2008
11,293
Posted By pcboss
Thanks for your fast response, but... where I...
Thanks for your fast response, but... where I specify the name of the file to be modified...?

I tried:

awk -F, 'BEGIN{OFS=","}{if($2 == 232){$5="PASSED";print}}' alumni*.csv > alumni*.csv
...
Forum: Linux 01-19-2008
11,293
Posted By pcboss
Replace field in csv
Hi, I need to replace a field (field 5) in a csv file, based on the content of another field (field 2), something like this:

actual file:

field1, field2, filed3, field4, field5, field6...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 04:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy