Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

can somebody recommend a good Linux text editor for Windows (if it exists), I wrote scripts for C-Shell using txt editor of windows but I have problem, it doesn't run because windows is not UNIX, what can I do? I don't want to install linux for a few scripts, I do testing of my scripts via unix server (this server is not mine), thanks in advance, also I treed dos2unix command, also doesn't work

share|improve this question
What happens when you run dos2unix? Error message? What happens when you run a script that's been processed by dos2unix? If you're trying to run your script in Windows cmd.exe, then you're right "Windows is not Unix". You will need to install Cygwin as Henno suggests or install Linux, or get access to a Linux or Unix system. And if you can, use any other shell besides csh or tcsh. – Dennis Williamson Jun 1 '10 at 17:44
It sounds like your problem is that you aren't able to run the scripts. The editor you're using won't matter. You can use Windows Notepad or Notepad++ or any other. What you need to find is a c-shell which runs under Windows for testing. – Doug Harris Jun 1 '10 at 20:49
up vote 0 down vote accepted

'vim' has a windows port over there. and you can save files with unix-lineending (among a lot of other things).

share|improve this answer

I like using notepad++. It has an EOL (end of line) converter under Edit...EOL (details).

share|improve this answer

You could try and install Cygwin, this will give you a relatively complete Linux environment within Windows. You can configure it to install just what you need (like a shell and a few utilities, and vi or emacs), and go from there.

share|improve this answer

What does the file look look when you look at it in a plaint text editor such as notepad?

If it looks sensible as a text file in Windows, then you could try using the Windows (command line) version of dos2unix, although I would be surprised if the dos2unix program had a problem.

Look at it again to see that only the line breaks have changed.

What happens when you look at the file on the server? Does it look sensible?

Are you sure that the script works? (Have you remembered to make the script executable?)

share|improve this answer

If you are looking for a Windows GUI app for text editing in a format that is Linux friendly, EditPlus is a good tool.

share|improve this answer
Probably not the answer the poster is looking for, since dos2unix didnt help either. – akid Jun 1 '10 at 17:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .