On Tue, Oct 21, 2003 at 10:00:34PM -0500, Taylor Lewick wrote: > Jeez, you just said what I have been thinking, which is again why I hate > Windows so much... > But beyond that, have you found a good way to cat files and do grep? I > think the dos command find works for grep, but havent gotten around to > trying it yet. > > Does cygwin provide most of the Unix commands that you typically need in > perl programming?
well, unixcmd cygwincmd ---- ---- cat cat grep grep ls -1 ls -1 rxvt rxvt xterm xterm bash bash screen screen gcc gcc find find perl perl date date etc.. ;-) Its just a shame that cygwin doesn't do native windows very well. > Just as an FYI some recent things I have found... > > dir /B works like ls -1 in unix, nice for reading a directory into an array > and then doing a foreach $item (@dir_listing) > > also if you do a copy /path/to/filename/filename CON: this will cat the > output to the screen. You can assign an array to this as a way to get the > data loaded... > > Does anyone know of a nice DOS/Windows way to modify the Date command? > Right now I have to run it and then regular expression the hell out of it to > get it to look the way I want... Just curious... > > Hope some of this is helpful. I am interested to know if cygwin is more > helpful to you, i.e. if you find workarounds to the directory problems you > are having. I hate windows so much, but just can't get around it. that's the reason I'm doing it.. (the workarounds) It's far less work for me to have to figure out every single equivalent to unix commands, than it is to port to native Win32. If I just get it so that cygwin's native perl does everything that active state's does, then I'll be set. Or better yet, make mingw's native perl do this. Then I can develop 'standalone' windows apps. Cygwin comes with a price. You need a dll to link against (cygwin1.dll), but other than that its really cool. It would be *the* answer for me if I didn't have to distribute my apps to other places, and I didn't need to do native Win32 calls using perl's Win32:: functions.. Although, as per the list, there are rumors that a Win32:: port for cygwin/mingw exists. Ed > I should have my site, WindowsHaters.com up pretty soon, so check it out... > > Taylor > _______________________________________________ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs