Mail Archives: cygwin/2002/09/11/09:40:24
On Wed, 11 Sep 2002, Christopher Faylor wrote:
> 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
I suppose I wanted to make the distinction between bash and the command
prompt more obvious (in terms of quoting, etc), but you are, of course,
right.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
It took the computational power of three Commodore 64s to fly to the moon.
It takes a 486 to run Windows 95. Something is wrong here. -- SC sig file
--
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/
- Raw text -