12-14-2000
Hmmmm. Doing a DOS copy does not 'convert the file to DOS' it just copies the file to a DOS formatted disk. The file is not converted or changed to DOS, BTW.
You could try opening the file with a text editor that can open a binary file; i.e. VI, EMACS, or one of the myriad bin-hex editors.
What is the utility to read the binary file?
If it is a binary file, you need to understand the format. That means you need to have the source code of the utility that either writes or reads the file. OR, you must open the file with a binary editor and reverse engineer; which is time consuming.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear Sir;
i want to know how the binary data convert to text file or readablw format (ASCII).If possible pl. help me for the software and where it is available for download. i.e. (1 Reply)
Discussion started by: auro123
1 Replies
2. Shell Programming and Scripting
Hi Guys,
The code snippet below is working fine with xls 2003 but the same is not working in xlsx 2007. Can someone please help.
#Convert .txt file format to .xls format
awk 'BEGIN{
FS="|"
cols=8
print "<HTML><style type=\"text/css\">td{mso-number-format:\"\@\"}</style><BODY><TABLE... (1 Reply)
Discussion started by: icefish
1 Replies
3. Shell Programming and Scripting
I desperately need to write a script that go into text documents that list the location of files in small caps and have it convert the directories and subdirectories that lead to the file as Title Caps while leaving the file itself in small caps... to illustrate what I mean:
I need to turn txt... (6 Replies)
Discussion started by: monkeyman
6 Replies
4. Shell Programming and Scripting
This is the ldf file
dn: sdcsmsisdn=1000000049,sdcsDatabase=subscriberCache,dc=example,dc=com
objectClass: sdcsSubscriber
objectClass: top
postalCode: 29600
sdcsServiceLevel: 10
sdcsCustomerType: 14
givenName: Adelia
sdcsBlackListAll: FALSE
sdcsOwnerType: T-Mobile
sn: Actionteam... (1 Reply)
Discussion started by: LinuxFriend
1 Replies
5. Shell Programming and Scripting
Input file (each line is separaed by spaces )given below:
Name Domain Contact Phone Email Location
----------------------- ------------------------------------------------ ------- -----... (18 Replies)
Discussion started by: sreenath1037
18 Replies
6. Shell Programming and Scripting
Thank u every body ......just need a help so that a text file needs to be converted into CSV.............
my log file is as follows
Host scsi3: usb-storage
Vendor: Maxtor
Product: OneTouch III
Serial Number: 044303E5
Protocol: Transparent SCSI
Transport: Bulk
... (4 Replies)
Discussion started by: tangotango
4 Replies
7. UNIX for Advanced & Expert Users
Hi Guys,
My OS is Suse Linux.. Is there a Command to convert PDF file to Text??
Cheers!!!!! (2 Replies)
Discussion started by: mac4rfree
2 Replies
8. Shell Programming and Scripting
hi i hav a file called focus. which is the output file. i want to convert this file to html file and mail it. help with code and explanatio. i am basic in unix (7 Replies)
Discussion started by: wasim999
7 Replies
9. Shell Programming and Scripting
Hi,
I have following text file. I want to convert it into the below HTML format. Kindly help.
Input Text File
Header 1
=======
Name:***
Age:***
Address:***
Work Phone:***
Email:***
Mobile:***
Country:***
City:***
Pincode:***
some text here **** (10 Replies)
Discussion started by: ctrld
10 Replies
10. Shell Programming and Scripting
Hi all;
We have a table:
COL1 COL2 COL3 COL4 COL5 COL6 COL7
val1 val2 val3 val4 val5 1 val7
val1 val2 val3 val4 val5 3 val7
val1 val2 val3 val4 val5 5 val7
val1 val2 val3 val4 val5 2 val7
...
As you see, 6th columns are filled with numbers as, 1, 2, 3, 4, etc... and I want to make a... (10 Replies)
Discussion started by: gc_sw
10 Replies
FLIP(1) Linux Programmer's Manual FLIP(1)
NAME
flip, toms, toix - do newline conversions between **IX and MS-DOS
SYNOPSIS
flip -h
flip [ -umvtsbz] file ...
flip [ -umvtsbz] -
toix [ -vtsbz] file ...
toms [ -vtsbz] file ...
DESCRIPTION
flip is a file interchange program that converts text file formats between **ix and MS-DOS. It converts lines ending with carriage-return
(CR) and linefeed (LF) to lines ending with just linefeed, or vice versa. If the special argument "-" is given, input is read from stdin
and written to stdout.
flip has the following features:
flip will normally refuse to convert binary files. You can override this.
When asked to convert a file to the same format that it already has, flip causes no change to the file. Thus to convert all files
to **IX format you can type
flip -u *
and all files will end up right, regardless of whether they were in MS-DOS or in **IX format to begin with. This also works in the
opposite direction.
If a file contains isolated CR characters for underlining or overprinting, flip does not change them.
flip preserves file timestamps. You can override this.
flip preserves file permissions.
flip is written in C and will compile and run under MS-DOS/Turbo C, 4.3BSD, and System V.
flip accepts wildcards and multiple filenames on the command line.
If a user interrupt aborts flip, it does not leave behind any garbage files or cause corruption of the files being converted.
When converting from MS-DOS to **IX format, flip removes any trailing control Z (the last character in the file), but leaves embed-
ded control Z characters unchanged. This minimizes the possibility of accidentally converting a binary file that contains a control
Z near the beginning. You can override this and ask flip to recognize the first control Z found as end-of-file.
flip can be asked to strip the high (parity) bit as it converts a file.
flip is normally invoked as:
flip -umhvtb file ...
One of -u, -m, or -h is required. Switches may be given separately or combined together after a dash. For example, the three command
lines given below are equivalent:
flip -uvt *.c
flip -u -v -t *.c
flip -u -vt *.c
On systems that allow a program to know its own name, flip may be renamed (or linked) to a file called toix for conversion to **IX format,
or to a file called toms for conversion to MS-DOS format. When invoked with the name toix or toms, flip will act as if it were invoked
with the -u or -m option respectively.
OPTIONS
-u Convert to **IX format (CR LF => LF, lone CR or LF unchanged, trailing control Z removed, embedded control Z unchanged).
-m Convert to MS-DOS format (lone LF => CR LF, lone CR unchanged).
-h Give a help message.
-v Be verbose, print filenames as they are processed.
-t Touch files (don't preserve timestamps).
-s Strip high bit.
-b Convert binary files too (else binary files are left unchanged).
-z Truncate file at first control Z encountered.
AUTHOR
Rahul Dhesi <dhesi@bsu-cs.bsu.edu>.
SEE ALSO
unix2dos(1), dos2unix(1).
Linux 2.0 July 20, 2002 FLIP(1)