Thanks for your answers, but even with them I'm not able to keep all my digits in the output file.
I write my code in the command prompt (cdm) on a computer using Windows XP. My code is:
cd desktop\GnuWin32\bin
awk -F[,NW] -v OFS=, {print-$3,$1,-$5} originalfile.txt > newfile.txt
I'm sorry...
Hi, I'm new with awk and have some trouble with it. I have a file with geographic coordinates like this:
49.397506N,123.505509W,-2.63
49.397509N,123.505495W,-2.58
49.397503N,123.505481W,-2.54
49.397505N,123.505468W,-2.50
49.397504N,123.505454W,-2.48
49.397502N,123.505440W,-2.44
The three...
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.