Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cr(1) [debian man page]

cr(1)							      General Commands Manual							     cr(1)

NAME
cr - converts text files between nix EOL and dos EOL SYNOPSIS
cr - | + <input file> <output file> DESCRIPTION
Text files, such as tle files, that come from a dos source usualy have the ^M symbol at the end of every line. Cr converts files between the dos newline format and the normal *nix newline format by stripping the ^M to convert dos to *nix, using the '-' option, or adding ^M to a *nix file to create the proper dos file when the '+' option is used. Although this extra character is not often a problem, programs like seesat5, which are data driven will encounter parsing problems when the extra character is present. It is these problems that cr is intended to repair. Options - | + One or the other of these options is required. The '-' option is used to remove ^M from all newlines found in the dos file. The '+' option is used to add ^M to every newline found in a *nix file. input file Fully delineated path to the input file. As this program is used in the dos environment as well, standard input is not used. output file Fully delineated path to the output file. As this program is used in the dos environment as well, standart output is not used. SEE ALSO
seesat5(1), seesat5(7), SEESAT5.INI(5), tle(5) BUGS
Cr is not an inteligent program. It methodicaly replaces/removes the offending character when it finds it in the correct context. Newline sequences found in contexts other than 'newline' will be replaced/removed just like those found in the proper context. Passing a binary file through cr is not advised, for this reason. Send all inqueries to Dale Scheetz <dwarf@polaris.net>. Debian Linux 2 April 96 cr(1)

Check Out this Related Man Page

cr(1)							      General Commands Manual							     cr(1)

NAME
cr - converts text files between nix EOL and dos EOL SYNOPSIS
cr - | + <input file> <output file> DESCRIPTION
Text files, such as tle files, that come from a dos source usualy have the ^M symbol at the end of every line. Cr converts files between the dos newline format and the normal *nix newline format by stripping the ^M to convert dos to *nix, using the '-' option, or adding ^M to a *nix file to create the proper dos file when the '+' option is used. Although this extra character is not often a problem, programs like seesat5, which are data driven will encounter parsing problems when the extra character is present. It is these problems that cr is intended to repair. Options - | + One or the other of these options is required. The '-' option is used to remove ^M from all newlines found in the dos file. The '+' option is used to add ^M to every newline found in a *nix file. input file Fully delineated path to the input file. As this program is used in the dos environment as well, standard input is not used. output file Fully delineated path to the output file. As this program is used in the dos environment as well, standart output is not used. SEE ALSO
seesat5(1), seesat5(7), SEESAT5.INI(5), tle(5) BUGS
Cr is not an inteligent program. It methodicaly replaces/removes the offending character when it finds it in the correct context. Newline sequences found in contexts other than 'newline' will be replaced/removed just like those found in the proper context. Passing a binary file through cr is not advised, for this reason. Send all inqueries to Dale Scheetz <dwarf@polaris.net>. Debian Linux 2 April 96 cr(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

How can I read files from the floppy in RedHat7.1

Can anybody tell me how can I read files from floppy. The files which are written in dos format. What I want to do is read files which I have on my Windows Machine and read those files On RedHat7.1 Machine. When I do this command mount -t msdos /dev/fd0 mnt/floppy I can see the files and I copy... (9 Replies)
Discussion started by: syedifti
9 Replies

2. UNIX for Dummies Questions & Answers

Dos system Connectivity

I am having novell netware and unix servers. I use diskless system to connect to novell netware. Can I know how to enable these diskless systems which boots through dos to connect unix via telnet. I heard there is some software to do it. Anybody knows?:) (8 Replies)
Discussion started by: arulprasad
8 Replies

3. Windows & DOS: Issues & Discussions

What if I have a really, really, really, old DOS?

Lately I've been trying to fix a 1991 Packard Bell, it's been running fine, but it's eating my memory for fun and taking away my pages. Is it worth my time trying to fix it, and is it possible to put new programs on it? thank you (9 Replies)
Discussion started by: Saz43
9 Replies

4. UNIX for Dummies Questions & Answers

How to convert ^M appearing at end of line to unix newline?

How to convert ^M appearing at end of line to unix newline? As I have tried with ^M in 'tr' it replaced ^ to a newline. Thanks in advance. (21 Replies)
Discussion started by: videsh77
21 Replies

5. Windows & DOS: Issues & Discussions

telnet from unix to dos

hi eveybody, i use sco unix as server and dos as client . how i can connect from unix server to dos client ( how to telnet to dos and run commands?)? thanks. (8 Replies)
Discussion started by: shrb78
8 Replies

6. Shell Programming and Scripting

Sed Help

Hi, I need to replace every occurence of the sting "$($" by "$ $" . Eg: Wel$($come to U$($nix should be replaced by Wel$ $come to U$ $nix i tried sed 's/\$(\$/$ $/g' but i get the o/p Wel$( to U$( can anyone help .... (8 Replies)
Discussion started by: Shivdatta
8 Replies

7. Shell Programming and Scripting

Performance data, *nix

Hello, I want to write a tool which fetches performance data from remote machines. Sounds easy? well there are some requirements: No extra "client" software should be needed on the hosts, remote shell access (e.g. SSH) should be enough. -> I'm limited to a small amount of tools. I want CPU,... (8 Replies)
Discussion started by: Eliteforce
8 Replies

8. Shell Programming and Scripting

Delete last character in dos file

Hi, I am creating a file using an unix script and then converting it to dos format. After conversion a ^Z character is added at the end of file. I want remove this last ^Z character. Can anyone please tell me how to do this? Thanks a lot. Sunil (7 Replies)
Discussion started by: ssmallya
7 Replies

9. Shell Programming and Scripting

removing extra files in dos

Hi, I have same file by name i want to keep only access file and want to delete rest. This is specific to DOS only. Any idea of doing this. I tried so many options but none worked for me. Thanks Namish (11 Replies)
Discussion started by: namishtiwari
11 Replies

10. UNIX for Advanced & Expert Users

Unix more secure than windows

Hi, I need to know why is Unix considered as more secure as compared to Windows. Following points are known but the reason is not known: i. File access permissions can be provided user wise in unix. .....but if i share my file in windows, then on that also access permissions can be... (10 Replies)
Discussion started by: rajneesh_kapoor
10 Replies

11. What is on Your Mind?

What was your first Linux distribution?

What was the first Linux distribution you tried? My first was Knoppix, it was pretty good I thought, and it supported my old hardware http://www.linuxforum.com/images/smilies/smile.png Too bad I couldn't figure out how to install it at the time though. What about you? (32 Replies)
Discussion started by: billcrosby
32 Replies

12. Shell Programming and Scripting

Extract header data from one file and combine it with data from another file

Hi, Great minds, I have some files, in fact header files, of CTD profiler, I tried a lot C programming, could not get output as I was expected, because my programming skills are very poor, finally, joined unix forum with the hope that, I may get what I want, from you people, Here I have attached... (17 Replies)
Discussion started by: nex_asp
17 Replies

13. HP-UX

[Solved] Weird 'ls -l' output

Hello folks, I've found an HP-UX server with a rare 'ls -l' output. Please see the attached file. Anybody knows how can I change the output to not have this extra tabulations? Thanks in advance! (10 Replies)
Discussion started by: carpannav
10 Replies

14. AIX

HMC in VmWare NIC sl0 issue.

Hi There, First of all I'm new to *nix world, so bear with me and English is not my native tongue :) Now I'm working on the HMC 7.3.3.0 ServPack:0 base_version:20080402.1 to make it work in VmWare (testing in Workstation) I've got HMC installed and realized that network options in GUI... (8 Replies)
Discussion started by: JKat
8 Replies

15. HP-UX

Ux2dos script

Hi all, Does anyone know how to convert a good few files in a particular directory (unix) to dos files and place them in another directory? I know this can be done with ux2dos but I am trying to come up with a shell script to do so (13 Replies)
Discussion started by: lcclaj0
13 Replies