Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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
1  
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
add comment

5 Answers 5

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
add comment

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
add comment

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

share|improve this answer
add comment

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.