Sponsored Content
Full Discussion: ux2dos
Top Forums UNIX for Dummies Questions & Answers ux2dos Post 302191766 by zapper222 on Sunday 4th of May 2008 07:18:16 PM
Old 05-04-2008
OK..........thanks a lot
Actually I am using a very old version of HP unix and I think the '{}' is necessary....but I'll try it both ways.

Zapper
 

We Also Found This Discussion For You

1. 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
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)
All times are GMT -4. The time now is 10:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy