I'm trying to edit a text file using AWK - I want to strip back a lot of the data in my file and save the output even if I have to do it bit by bit.
I've installed cygwin on my XP box and most of the functions are there except that I cant find a file editing tool like vi or edit? Any ideas? I haven't been able to find any other shell thus far..
Answers
Add AnswerHere's a site you can reference -
http://lowfatlinux.com/linux-awk.html
http://linux.about.com/od/glossary/l/bldef_cmd_awk.htm
I do use also CYGWIN in my machine (Windows XP) and the vi editing tool works normally. Guess you can find it on the the following path:
X:\cyg\usr\share\locale or in the main structure: X:\cyg\bin (note that 'X' is the drive where Cygwin is installed.).
Actually the vi command on windows call for an exe program named 'vim.exe'. You can also search for it, although you should be able to type this command anytime and anywhere with the Cygwin interface opened.
Hmm... Well, if you want to edit a file using awk, you can even install the GNU Utils separately on your XP box and then use vi and awk from your cmd prompt too - you don't necessarily need cygwin. If you do NOT need to do this programmatically, you should install vim and then you can just use that interface with %s to manipulate the files using regex. (Of course, you can use vi too, but vim and gvim are so much more pleasing to work with ;) )
Good luck.
Share your knowledge