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
Explain the OS/2 Operating System Like NetWare, OS/2 manage resources at three levels, as shown in Figure 4.5 Resources may be maintained at the session, process, and thread le

Computing uses three number bases:- Binary (base 2), Octal (base 8) and Hexadecimal (base 16). Binary has been described before, although various catchphrases are used to describe

Explain internal fragmentation The Internal fragmentation signifies to the result of reserving a piece of space without ever intending to use it. This space is wasted that this

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

Write short note on recovery regarding the file system in Windows 2000. In many file systems a power breakdown at the wrong time can damage the file system data structures so s

Determine the syntax of the Fork and Join Primitive  Answer: Syntax of the Fork and Join Primitive is as follow: Fork Join


Multithreading - Operating systems that permit different parts of a software program to run concurrently. Operating systems that would come into this category are: Linux UNI

Two Level Directory This kind of structure overcomes the problems of assigning unique names to the files. Thus there need not be any confusion among users. In this kind of s

FIXED PARTITIONING In a fixed partitioning, the operating system inhabiting some fixed portion of main memory is available for use of multiple processes -Using fixed partit