10-14-2008
It's not guaranteed... it depends what kind of data it contains. If it contains ASCII strings interspersed with unprintable characters then strings will do the job. If it's encrypted or in a different encoding (EBCDIC) then more work will be required... the question is too open ended without more information, i.e. what type of main frame, what type of file it is, etc.
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 All,
Business Users are transfering ( FTP ) a CSV file into the IBM AIX box with transfer mode as ASCII. But I want to convert the CSV file from ASCII mode into binary mode, as my script expects file in binary mode.
Is it possible to do through Unix commands?
Thanks in Advance,
RK (1 Reply)
Discussion started by: srajeshmca
1 Replies
3. SCO
Here is what I did . . . . I FTP'd several *.dbf zipped files from a SCO 5.0.5 server to winXP machine, and did not set the transfer mode to BIN, now when i was uncompressing these files in SCO 5.0.5 , it was giving "Bad Decode Table error. Is there a way to convert the *.dbf.Z files to Binary so... (1 Reply)
Discussion started by: sameek1211
1 Replies
4. Shell Programming and Scripting
I want to verify the file is Binary or ascii file and accordingly I want to switch the program with ret code
ie 0 or success and 1 for failure
Can any one help me is this a correct syntex...i am getting error
#!/bin/ksh
$file filename
if
echo "ascii fie Found"
else
echo " binary... (6 Replies)
Discussion started by: u263066
6 Replies
5. UNIX for Dummies Questions & Answers
Hello all,
I am working with ftp servers in unix, and always I have to get and put files but I don't know exactly if I have to get or put them as an ascii or binary. Some files that I use are: .txt, .sav, .fmb, .pct, .sh, .ksh, .dat, .log.
Somebody can tell me what is the difference between... (2 Replies)
Discussion started by: Geller
2 Replies
6. Shell Programming and Scripting
Hi all,
I have been trying to convert a binary file to TEXT/ASCII file in linux/solaries.and commands like string are no good.Also i am not sure how the how output of the file looks like...
I am attaching the binary file as zip since i couldnt load it in its original form in the post incase... (1 Reply)
Discussion started by: pistachio
1 Replies
7. Shell Programming and Scripting
Hi,
I have got a library file, created by compiling C code. The file information with "file" command, gives it a "application/x-archive" type file. I want to extract the release string of my software from this file, so that i can know which version of C files were used to create the lib.
Can... (3 Replies)
Discussion started by: atulmt
3 Replies
8. Shell Programming and Scripting
what is the diff between ascii and binary file.
my understand is that..
ascii file - has only line feed - \n in it
where as
binary file - has both line feed and carriage return in it- \r\n
is that correct.
also,what is the ksh command to identify whether it is a binary or ascii... (1 Reply)
Discussion started by: billpeter3010
1 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. Solaris
Dears,
I need help to convert the binary file into ASCII format.
Actually we have CDRs which is generated by telecom switch at this is in ASN1 format or binary format, I need to convert those binary formatted file into ASCII format using Perl, or shell scripting.
Is there any way to solve... (3 Replies)
Discussion started by: PRINCESS_RORO
3 Replies
TFTP(1) BSD General Commands Manual TFTP(1)
NAME
tftp -- trivial file transfer program
SYNOPSIS
tftp [host]
DESCRIPTION
Tftp is the user interface to the Internet TFTP (Trivial File Transfer Protocol), which allows users to transfer files to and from a remote
machine. The remote host may be specified on the command line, in which case tftp uses host as the default host for future transfers (see
the connect command below).
COMMANDS
Once tftp is running, it issues the prompt and recognizes the following commands:
? command-name ...
Print help information.
ascii Shorthand for "mode ascii"
binary Shorthand for "mode binary"
connect host-name [port]
Set the host (and optionally port) for transfers. Note that the TFTP protocol, unlike the FTP protocol, does not maintain connec-
tions betwen transfers; thus, the connect command does not actually create a connection, but merely remembers what host is to be
used for transfers. You do not have to use the connect command; the remote host can be specified as part of the get or put com-
mands.
get filename
get remotename localname
get file1 file2 ... fileN
Get a file or set of files from the specified sources. Source can be in one of two forms: a filename on the remote host, if the
host has already been specified, or a string of the form hosts:filename to specify both a host and filename at the same time. If
the latter form is used, the last hostname specified becomes the default for future transfers.
mode transfer-mode
Set the mode for transfers; transfer-mode may be one of ascii or binary. The default is ascii.
put file
put localfile remotefile
put file1 file2 ... fileN remote-directory
Put a file or set of files to the specified remote file or directory. The destination can be in one of two forms: a filename on the
remote host, if the host has already been specified, or a string of the form hosts:filename to specify both a host and filename at
the same time. If the latter form is used, the hostname specified becomes the default for future transfers. If the remote-direc-
tory form is used, the remote host is assumed to be a UNIX machine.
quit Exit tftp. An end of file also exits.
rexmt retransmission-timeout
Set the per-packet retransmission timeout, in seconds.
status Show current status.
timeout total-transmission-timeout
Set the total transmission timeout, in seconds.
trace Toggle packet tracing.
verbose Toggle verbose mode.
BUGS
Because there is no user-login or validation within the TFTP protocol, the remote site will probably have some sort of file-access restric-
tions in place. The exact methods are specific to each site and therefore difficult to document here.
HISTORY
The tftp command appeared in 4.3BSD.
Linux NetKit (0.17) August 15, 1999 Linux NetKit (0.17)