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
how response times are reduced by allowing time sharing on top of multiprogramming

Define deadlock. A process requests resources; if the resources are not available at that time, the process enters a wait state. Waiting processes might be never again change s

write a linux command to display lines from 25 - 45 of directory "/edc/password"

What are the benefits of multiprogramming? Responsiveness : Multithreading is an interactive application may permit a program to continue running even if part of it is block

Problem: Managing Outside Communication. a. What is the principal action we use when communicating through a web browser? b. Give an example of how to preaddress an email

What is Multiprogramming? Multiprogramming is the capability of am operating system to support multiple applications running concurrently. Multiprogramming simply means that an

Explain the Architecting For Threads When available, threads are an integral part of any multitasking server application program. It is important that the operating system prov

Question: (a) Modern processors operate in one of two modes: one for the operating system and one for applications. What is the purpose of having these two modes? What are

Explain fixed partitioning. Partitioning are the simpler techniques that don't involve virtual memory. Partitioning has been used in numerous variations in operating systems.

Explain Deadlock Prevention-Resource allocation graph allocation Resource allocation graph algorithm :  Using this algorithm we are able to actually know if there exists in th