Different Format in Unix & Windows


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Different Format in Unix & Windows
# 1  
Old 01-19-2005
Different Format in Unix & Windows

I used the following commands to store the discription of "sed" into a unix file:

Code:
man sed > sed.txt

But, after I download the file "sed.txt" to a Windows XP system, the file can not be displayed correctly. How to change the format of a Unix file to a Windows one?
# 2  
Old 01-19-2005
It seems that the file sed.txt can not be displayed in Emacs either:


User Commands SED(1)



NAME
sed - manual page for sed version 4.0.3

SYNOPSIS
sed [_O_P_T_I_O_N]... {_s_c_r_i_p_t-_o_n_l_y-_i_f-_n_o-_o_t_h_e_r-_s_c_r_i_p_t} [_i_n_p_u_t-
_f_i_l_e]...

DESCRIPTION
_S_e_d is a stream editor. A stream editor is used to perform
basic text transformations on an input stream (a file or
input from a pipeline). While in some ways similar to an
editor which permits scripted edits (such as _e_d), _s_e_d works
by making only one pass over the input(s), and is conse-
quently more efficient. But it is _s_e_d's ability to filter
text in a pipeline which particularly distinguishes it from
other types of editors.
# 3  
Old 01-19-2005
I can only use cat to read this file.
# 4  
Old 01-19-2005
man is not a good thing to redirect since it pipes the output through more (or less).

But, try this:
Code:
man sed > file
unix2dos file > file.txt

# 5  
Old 01-19-2005
try :

man sed | col > sed.txt
# 6  
Old 01-19-2005
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Compatibility between Unix & Windows

Pl. let me know whether Sun Solaris Server (Unix OS) is compatible with Windows Server or Vise Versa. Can i update the data first in Windows Server and then copied it to Sun Solaris Server or Vise Versa. (1 Reply)
Discussion started by: seemaitri
1 Replies

2. Shell Programming and Scripting

Converting windows format file to unix format using script

Hi, I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix. My requirement here is that i want to do it automatically using a... (5 Replies)
Discussion started by: sarbjit
5 Replies

3. AIX

sftp between Unix & windows

Guys, sftp between Unix & Windows I'd like to get good software or a way to how to configure sftp between ( windows to Unix ) and ( Unix to windows ) to be automatic login between the different operating systems without asking password .. Pls assist in this regard … (3 Replies)
Discussion started by: Mr.AIX
3 Replies

4. Shell Programming and Scripting

Perl for Unix & Windows

Hi Even though this is unix forum, iam posting this thread as iam not sure of which forum should i post this too. I understand perl can be used in unix environment and i have used the same for automation of my processes. Eg: Open a file search the text string replace the text string close... (9 Replies)
Discussion started by: kenkanya
9 Replies

5. UNIX for Dummies Questions & Answers

How to format a floppy in unix filesystem from windows

Hi, we have a strange problem. We have to format any floppy disk HD in unix filesystem mode (SCO) but we haven't unix workstations. Are there any software to make this formatting from windows xp pc ? Regards Gianpaolo (1 Reply)
Discussion started by: elektra
1 Replies

6. UNIX for Advanced & Expert Users

format unix hard drive on windows xp

Hello, How is it possible to copy the partition of hard drive that have unix on it (it's a scsi hard drive of an Irix (SGI)), under windows xp - what I did till now is to connect the drive to the my pc (windows xp installed) with a scsi adapter and the program partition magic can't recognize the... (2 Replies)
Discussion started by: moyalt
2 Replies

7. UNIX for Dummies Questions & Answers

Networking unix & windows

I have very basic question: I have 2 windows sytem & 1 Unix system & wanted to put all three system into one network to each other. what kind of other hardware I need? like cable , router? can anybody tell me the configuration? like how to connect to external hardware to put into network? ... (9 Replies)
Discussion started by: kar1
9 Replies

8. IP Networking

UNIX OS & Windows XP

Hello, Can someone please tell me if it is possible to install a Unix Os on a system that already has a Windows XP? If so, how do i go about it doing it?: (6 Replies)
Discussion started by: Ike
6 Replies

9. Filesystems, Disks and Memory

What the best HD format for Unix & Linus

Hello people, Im just about to install linux and unix but would like to know what the best Partition type format is for both of them. Can anyone tell me Thankyou in advanced (1 Reply)
Discussion started by: jeffersno1
1 Replies

10. UNIX for Advanced & Expert Users

Connectivity B/w Unix & windows

i want to install ScO UNIX 5.1 in a windows 98 system. i want it as a DUAL BOOT system. can i doit? If yes How. and also i want to network unix with my clients. is it poosible to network both unix & windows thru a single network card. if yes how? also i wanted to know that thru a switch can i... (3 Replies)
Discussion started by: jigs
3 Replies
Login or Register to Ask a Question