Run bash script in cmd with cygwin

Matt D. matt@codespunk.com
Wed Sep 25 04:32:00 GMT 2013


Try adding this to your script:

cd /cygdrive/d/path/to/dir;`for file..


Matt D.

On 9/24/2013 5:43 PM, Ulrich Pogson wrote:
> Hello
>
> I would like to run this script `for file in `find . -name "*.po"` ;
> do msgfmt -o ${file/.po/.mo} $file ; done` in windows cmd. The script
> need to run in a different folder. I have been able to run it though
> cygwin but want to integrate it with another system where it will be
> run through cmd.
>
> C:\cygwin\bin
> D:\path\to\dir
>
> How can I do this?
>
> Thanks.
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>
>
>

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



More information about the Cygwin mailing list