I am trying to work with a file which have 318 fields per record. when using awk I am getting " too many fields " error when trying to do any thing with awk<br>
awk '{print NF}' file gives this error.<br>
<br>
Any suggestions how to proccess this file, using awk ?
sed 's/\"\(.*\),\(.*\)\"/"\1 \2"/' /tmp/in_file>/tmp/out_file<br>
<br>
The above will work only if there is 1 , within the quotes, you can<br>
add as many , as you like by modifying the above line
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.