Transferring files from windows to unix, Operating System

Transferring files from Windows to Unix

Be very careful transferring files from Windows to Unix. If you do transfer a file from Windows to Unix open the file, in Unix, using vi.

For example, if you transferred a file named drivers.txt from Windows to Unix open the file in Unix with the command
 
vi -b drivers.txt
 
you will (might) see a lot of ^M's at the end of each line.
 
These MUST be removed using the command shown below or else your input file will have too many newline characters and will not translate properly. That is, your code will not correctly read the input file. You will have an extra newline at the end of every line of your file in Unix. Your code will work on Windows but NOT on Unix.

Still in vi, in command mode (press the Esc key first) do the following
 
:%s/ctrl-v ctrl-m//g
 
ctrl-v ctrl-m means hold down the control key and with the control key down press v then press m.

Posted Date: 2/16/2013 5:54:42 AM | Location : United States







Related Discussions:- Transferring files from windows to unix, Assignment Help, Ask Question on Transferring files from windows to unix, Get Answer, Expert's Help, Transferring files from windows to unix Discussions

Write discussion on Transferring files from windows to unix
Your posts are moderated
Related Questions
shell script that accepts two directory names as arguments and delete those file in the second directory that are identical to the file in the first

importance of Operating system in modern computers. Also explain various functions & types of operating systems

What are the advantages of Linked allocation? The benefits are a. No external fragmentation b. Size of the file does not require to be declared

Q. Presume that a distributed system is susceptible to server failure. What mechanisms would be needed to guarantee the exactly once semantics for execution of RPCs? Ans

Determine an imperative statement Imperative statement points out an action to be carried out during execution of assembled program

Synchronization In communication among processes messages passed may be blocking or nonblocking - also called as synchronous and asynchronous. Blocking send : The sending pr


Thermostats are subjected to rigorous testing before they are shipped to air conditioning technicians around the world. Results from the last five samples are shown in the table. D

How does an operating system make multiprogramming possible by using single processor?

Q. Presume an operating system maps user-level threads to the kernel using the many-to-many model and the mapping is done through LWPs. Additionally the system allows developers to