This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bridge between windows and cygwin to use awk on windows files


On Wed, Sep 11, 2002 at 12:04:38AM -0400, Igor Pechtchanski wrote:
>On Tue, 10 Sep 2002, Bassim Karkachi wrote:
>
>> Hi -
>> I'm beginner, I'm trying to set up a directory where I can find windows
>> files while using cygwin. I would like to be able to run some awk script on
>> windows created files. Any help or suggestion
>> Bassim
>
>You can already access all of your windows files with cygwin:
>- from within bash/tcsh/sh:
>	$ cat /cygdrive/c/Temp/blah.txt | awk -e '...'
>  or even
>	$ cat `cygpath -u 'C:\Temp\blah.txt'` | awk -e '...'
>- from a dos prompt (you should have C:\cygwin\bin in your path):
>	C:\> type C:\Temp\blah.txt | awk -e "..."

Why not just

awk -e "..." filename

?

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]