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
What is single and multithreading and thread pool?

trace the historical evolution of the operations managent from themainly rural agricultural era of the artisans to the present day industrial revolution, high technoligical advance

Problem: a) Prepare a short note on the standard Linux File System. b) Prepare a short note on the RPM Package Management Tool. c) Briefly explain the two types of login

What criteria are important in choosing a file organisation?

Page Fault Handling conditions like, where the copy on write bit of a page is set and that page is send by more than one process, the Kernel assign new page and copies the conten

What are the different ways in which a thread can be cancelled? Cancellation of a target thread may happen in two different scenarios: Asynchronous cancellation: One thr

What advantages are there to this two-level directory? Users are isolated from each other. Users have more freedom in choosing file names.

Paging full question

What are the use of job queues, ready queues and device queues? As a process enters a system they are put in to a job queue. These queues having of all jobs in the system. The

Regard as a computer system that runs 5000 jobs per month with no deadlock-prevention or deadlock-avoidance scheme. Deadlocks take place about twice per month and the operator must