Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have just started to learn Java programming and need to be able to use a compatible notepad equivalent in Ubuntu i will need to save the data as is,in Ubuntu and be able to transfer the data from my Linux machine to the windows desktop regularly via memory stick i absolutely love Linux and don't want to have to go back to windows to do this.
I have just started to learn Java programming and need to be able to use a compatible notepad equivalent in Ubuntu i will need to save the data as is,in Ubuntu and be able to transfer the data from my Linux machine to the windows desktop regularly via memory stick i absolutely love Linux and don't want to have to go back to windows to do this.
Hi,
how about gedit? Keep in mind though, that Linux/Unix has different line-endings than windows. To convert them to dos format you could run
Code:
sed -i 's/$/\r/' file # convert unix to dos
which will convert your file to dosformat. To convert from dos back to Unix you can use
how about gedit? Keep in mind though, that Linux/Unix has different line-endings than windows. To convert them to dos format you could run
Code:
sed -i 's/$/\r/' file # convert unix to dos
which will convert your file to dosformat. To convert from dos back to Unix you can use
Code:
sed -i 's/\r$//' file # convert dos to unix
I recommend the programs "unix2dos" and "dos2unix" for these tasks.
However if you intend to regularly copy files from linux to windows, saving the file with dos-like newline endings (CR-LF pair as stated) would save you the trouble to do this every time you copy your files.
Pretty much any editor can save files like this, and be configured to save every file like this. emacs and vi are good examples, although "simple" editors like gedit probably can't.
Anyway, I don't see why the windows machine is needed, being that the compiled code in java is the same in windows and linux and everything. But I guess you should have your reasons...
I have just started to learn Java programming and need to be able to use a compatible notepad equivalent in Ubuntu i will need to save the data as is,in Ubuntu and be able to transfer the data from my Linux machine to the windows desktop regularly via memory stick i absolutely love Linux and don't want to have to go back to windows to do this.
You won't have a problem for that, if there's something in Linux that's text editors, Google can help you with that, there are hundreds.
As others already pointed out you will have to watch for the line endings, however in Windows you can open Unix text files (or Linux ones by that matter) using the wordpad, so that's really not a big problem and most editors as stated can be configured to save the file in one or another format.
I don't understand what's the point in moving the files from one OS to another constantly, though... Knowing that Java is cross-platform and you will be programming in Linux it really doesn't make much sense in writting the text file in Linux and then moving it to Windows to build the byte-code..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.