Closed Thread Icon

Topic awaiting preservation: UNIX-like CLIs for Windows 2000 (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12676" title="Pages that link to Topic awaiting preservation: UNIX-like CLIs for Windows 2000 (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: UNIX-like CLIs for Windows 2000 <span class="small">(Page 1 of 1)</span>\

 
Perfect Thunder
Paranoid (IV) Inmate

From: Milwaukee
Insane since: Oct 2001

posted posted 04-01-2003 18:43

I'm looking for something bash-like for Windows 2000, that'll have the same freedom and power as cmd.exe. I guess I want sort of a hybrid -- it would have a DOS-like command prompt and navigation, but would use / instead of \, would have a real command history when I hit up or down arrows, would support powerful piping and whatnot like UNIX, and would have a bunch of UNIXy workalikes, ideally straight ports of things like grep, awk, and so forth.

It didn't take much searching to find Cygwin, but when I installed it, it looked like Cygwin just created a little "UNIX preserve" in its directory. That's very different from having a UNIX-like interface with free control over my entire machine.

Any suggestions?

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 04-01-2003 19:40

well, the cygwin enviroment just simulatios a unix on a windows machine... you'll still need to find a shell to your liking and probably compile it with cygwin...

Personally, I use python for this most of my day to day, throwaway, shelllike tasks (and everything else as well), but then, I do things differently ;-)

so long,

Tyberius Prime

Perfect Thunder
Paranoid (IV) Inmate

From: Milwaukee
Insane since: Oct 2001

posted posted 04-01-2003 20:33

All I really want is command-line text processing, specifically regex-based find and replace, since Homesite's regex find and replace just doesn't seem to work for me. Right now, I'm putting files into the shared directory of my Linux box, then telnetting to the box to perform operations on the files. Sort of a roundabout way of doing it. (Gives me techie cred, though.)

Um, does anyone know how to pass single quotes as arguments to Perl's "s///" operator in a shell command like

find *.html

butcher
Paranoid (IV) Inmate

From: New Jersey, USA
Insane since: Oct 2000

posted posted 04-02-2003 00:12

I don't know if this helps, but it's what I came across while looking for an answer for you.

quote:
A character may be quoted (made to stand for itself) by preceding it with a backslash (\) or inserting it between a pair of uote marks ('' or ""). The shell may quote certain characters to prevent them from taking a special meaning.

All the characters enclosed between a pair of single quote marks (''), except a single quote, are quoted by the shell. Backslash has no special meanings inside a pair of single quotes.




[edit] This was for the bash shell BTW, but I thought it might apply. [/edit]
-Butcher-

[This message has been edited by butcher (edited 04-02-2003).]

Tyberius Prime
Paranoid (IV) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 04-02-2003 07:31

Python can do all that regexps stuff... you'd have to write a couple of scripts to have quick acess to the directories though, and its string support will be better than the shell's... you can enclose strings in ', " or even """ - choosing the right one should fix most of your escaping worries.

Give it a go, python.org -only a 22 mb download, batteries included.

WarMage
Maniac (V) Mad Scientist

From: Rochester, New York, USA
Insane since: May 2000

posted posted 04-02-2003 15:28

http://home.wanadoo.nl/fvu/Projects/Bash/Web/bash.htm#h-1
http://www.research.att.com/sw/tools/uwin/
That has information of getting all the *nix tools that everyone knows and love set up under windows.


Me

Perfect Thunder
Paranoid (IV) Inmate

From: Milwaukee
Insane since: Oct 2001

posted posted 04-02-2003 17:59

Well I'll be a monkey's uncle... Butcher, using double quotes worked. I could have sworn I tried it before... (shrug). Anyway, now I can write up some regex-based text-cleaning shell scripts. Hurrah for me!

edit: Yep, everything's working just swimmingly now! I put the RPG logs in my Linux box's shared directory, then run a shell script which goes through every .html file in the directory and reformats it to my liking. Then all I have to do is go through the logs and edit them for content. Saves quite a bit of work... like, almost all of it.

[This message has been edited by Perfect Thunder (edited 04-02-2003).]

« BackwardsOnwards »

Show Forum Drop Down Menu