11-05-2004
have you tired dos2unix and unix2dos?
freshmeat.net
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Here is what I did . . . . I FTP'd several *.pdf files from a web site to a UNIX server, and did not set the transfer mode to BIN, now Adobe thinks that the documents are corrupted. Is there a way to convert the *.pdf files to Binary so that Adobe can open them again. I would just re-download... (2 Replies)
Discussion started by: pc9456
2 Replies
2. UNIX for Advanced & Expert Users
Dear Experts
I need to read a binary file. I know for example in byte number 3801-3804 there is a 4 byte number embeded. Is there a way to extract this number from this file and then convert it to ascii via unix??
Your help would be highly appreciated.
Very Best Regards
Reza (5 Replies)
Discussion started by: Reza Nazarian
5 Replies
3. Programming
i hav tried to convert binary 2D data into text using binreader and writing into text file using streamwriter.
i use ReadSingle() function to convert from binary to ascii, although it works good in 1D data but not in more dimensions.
the kind of values i get are
-1.265369923E+038
and like
... (2 Replies)
Discussion started by: geet
2 Replies
4. Shell Programming and Scripting
hi
i am receiving a file from one system , i have to verify the format of the file data i.e whether the data is in acii format or binary format,
please help
thanks in advance
satya (1 Reply)
Discussion started by: Satyak
1 Replies
5. Shell Programming and Scripting
Hi All,
Please let me know if it is possible to convert data from ASCII to Packed Decimal through Unix?
Basically we have ASCII file with numeric data we want to convert that files data to Packed decimal format to send it to main frame.
Please let me know if we can do it through unix script.... (1 Reply)
Discussion started by: aloktiwary
1 Replies
6. Shell Programming and Scripting
Hi Guys,
I have a file as follows:
a 1
b 786
c 90709
d 99
a 9875
b 989
c 887
d 111
I want:
a 1 9875
b 786 989 (3 Replies)
Discussion started by: npatwardhan
3 Replies
7. UNIX for Dummies Questions & Answers
Hello everyone!
I have a huge dataset looking like this:
nameX nameX 0 1 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 1 2 2 2 ...............
nameY nameY 2 2 2 2 2 2 2 2 2 2 1 2 2 2 1 2 2 2 .....
nameB nameB 0 1 2 2 2 2 2 2 2 2 1 2 2 2 1 2 2 2 .....
(can be several thousands of codes)
and I need... (8 Replies)
Discussion started by: kush
8 Replies
8. UNIX for Advanced & Expert Users
Hi,
I want to convert a 3-column data to 3-row data using shell script. Any suggestion in this regard is highly appreciated.
Thanks. (4 Replies)
Discussion started by: sktkpl
4 Replies
9. Solaris
I have a huge files in binary format
thanks to help me in finding a way to convert these files from Binary format to ASCII format. (0 Replies)
Discussion started by: PRINCESS_RORO
0 Replies
10. Shell Programming and Scripting
Hello,
With bash-script (ubunto server) I'm trying to read a binary file and, for each character, give back its ascii code (including extended ascii). For example:
HEX => ASCII => PRINT
f5 => 245 => õ
50 => 80 => P
To load the binary file into a variable I tried in this way: ... (2 Replies)
Discussion started by: math4
2 Replies
RZ(1) General Commands Manual RZ(1)
NAME
rz - receive a file using the zmodem protocol
SYNOPSIS
rz [-abepqvy] [-t timeout]
OPTIONS
-a CP/M to UNIX conventions
-b Binary file
-e Escape for all control characters
-p Protect file if it already exists
-q Quiet; opposite of verbose
-t Set timeout in tenths of a second
-v Verbose; opposite of quiet
-y Yes, clobber existing files
EXAMPLES
rz </dev/tty01 >/dev/tty01
# Receive a file
DESCRIPTION
The XMODEM, YMODEM, and ZMODEM family of file transfer programs are widely used on personal computers. MINIX supports ZMODEM, the most
advanced of the set. The programs sz and rz are used for sending and receiving, respectively.
Rz and sz are programs that uses an error correcting protocol to transfer files over a dial-in serial port from a variety of programs run-
ning under various operating systems. Rz (Receive ZMODEM) receives files with the ZMODEM batch protocol. Pathnames are supplied by the
sending program, and directories are made if necessary (and possible). The meanings of the available options are:
-a
Convert files to UNIX conventions by stripping carriage returns and all characters beginning with the first Control Z (CP/M end of file).
-b
Binary (tell it like it is) file transfer override.
-c
Request 16 bit CRC. XMODEM file transfers default to 8 bit checksum. YMODEM and ZMODEM normally use 16 bit CRC.
-D
Output file data to /dev/null; for testing.
-e
Force sender to escape all control characters; normally XON, XOFF, DLE, CR-@-CR, and Ctrl-X are escaped.
-p
Protect: skip file if destination file exists.
-q
Quiet suppresses verbosity.
-t
Change timeout tenths of seconds (timeout follows flag).
-v
Verbose causes a list of file names to be appended to /tmp/rzlog. More v's generate more output.
-y
Yes, clobber any existing files with the same name.
SEE ALSO
sz(1), term(1).
RZ(1)