The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
Search Results
Showing results 1 to 3 of 3
Search took
0.00
seconds.
Search:
Posts Made By:
pcboss
Forum:
Linux
01-19-2008
4
Replace field in csv
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
4
Replace field in csv
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
4
Replace field in csv
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
Member Badges and Information Modal
×