unix shell scripting

OogyWaWa

Senior member
Jan 20, 2009
623
0
71
so i'm doing some shell scripting at work and learning lots of cool new things. amazing how powerful the unix shells can be. however, i'm also realize how much it totally sucks ass to work with vi /emacs, whatever. is there any type of program/ide i can use on my windows box just to test syntax and stuff. then i can just paste it into my console?
 

Oyster

Member
Nov 20, 2008
151
0
0
Cygwin?

Also, WinSCP will help you quite a bit if you keep jumping between Windows and UNIX. Just mentioning, in case you didn't already know...
 

sourceninja

Diamond Member
Mar 8, 2005
8,805
65
91
You could also find a windows editor that lets you edit over ssh. I do this on mac. I combine cyberduck with textmate. I sftp to my server, then right click and open with textmate. Cyberduck takes care of the magic. Then I open another shell to test from.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
so i'm doing some shell scripting at work and learning lots of cool new things. amazing how powerful the unix shells can be. however, i'm also realize how much it totally sucks ass to work with vi /emacs, whatever. is there any type of program/ide i can use on my windows box just to test syntax and stuff. then i can just paste it into my console?

There are hundreds of other editors available, however becoming comfortable with vim will go a long way to making your job simpler because it's available on every unix system out there out of the box. And it really is a great editor once you get the basics down, one of the first things I do on a new Windows box is install gvim.
 

Ken g6

Programming Moderator, Elite Member
Moderator
Dec 11, 1999
16,838
4,817
75
Yep, starting to use vi/vim is like boot camp (or at least what I hear boot camp is like). It's extremely unpleasant, but it will make you much better at your job. ;)

If you're using just "vi" in a terminal, try "vim". ViM should do syntax highlighting. If you finally decide that you just can't stand the modal interface anymore, and "vim" works, try "vim -y".