How to modify a windows file

View: New views
3 Messages — Rating Filter:   Alert me  

How to modify a windows file

by linux1974 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

what the syntax to modify a file in a windows directory?
I want to run a cronjob that modify a file in a windows directory ( eg. c:\test )
I will use the sed command.How can I pass the windows file ( ascii ) to sed and rewrite the file in the windows directory?
tks

Re: How to modify a windows file

by Igor Peshansky :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 26 Feb 2007, linux1974 wrote:

> what the syntax to modify a file in a windows directory?
> I want to run a cronjob that modify a file in a windows directory ( eg.
> c:\test )
> I will use the sed command.How can I pass the windows file ( ascii ) to sed
> and rewrite the file in the windows directory?

<http://cygwin.com/faq/faq.using.html#faq.using.accessing-drives>
HTH,
        Igor
--
                                http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_    pechtcha@... | igor@...
ZZZzz /,`.-'`'    -.  ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-' old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Freedom is just another word for "nothing left to lose"...  -- Janis Joplin

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Re: How to modify a windows file

by Christopher Faylor-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, Feb 26, 2007 at 01:38:04PM -0800, linux1974 wrote:
>what the syntax to modify a file in a windows directory?  I want to run
>a cronjob that modify a file in a windows directory ( eg.  c:\test ) I
>will use the sed command.How can I pass the windows file ( ascii ) to
>sed and rewrite the file in the windows directory?

You seem to be asking where the cygwin documentation is located.

Go back to the cygwin web page and click on the Documentation link on
the left bar.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/