Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to convert binary Unix file to text Post 302095653 by user12345 on Wednesday 8th of November 2006 08:54:53 PM
Old 11-08-2006
Hi,

I don't know what exact means by layout. The format of the dflt in windows is something like the following format which is a text file.
//////////////////////////////////////////////
printer "dflt"

height 66
width 80

after page control(L)

return ""
linefeed control(J)
///////////////////////////////////////////////

Rgds
 

10 More Discussions You Might Find Interesting

1. Programming

trying to convert binary data to text using C++

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

2. Shell Programming and Scripting

convert binary file into text file

im looking for anothr way to convert binary file into text file im using old solaris version (exatcly like xxd -r) thanks (2 Replies)
Discussion started by: modcan
2 Replies

3. AIX

Convert clear text into binary

Hi I need to display the binary text of an clearn text which is sent as input to the shell script (c shell); ex: I will pass "HELLO" as input, and i should get the binary format of the text Thanks in advance Mohan (1 Reply)
Discussion started by: mKarri
1 Replies

4. Shell Programming and Scripting

Need a unix script to convert date into Julian format in a text file

The 6th & 7th column of the text files represents date & time. I need this to be converted in julian format using command "date +%s -d <date>". I know the command, but dont know how to use it on the script 0 dbclstr-b IXT_Web Memphis_Prod_SQL_Full Memphis-Prod-SQL-Full-Application-Backup... (4 Replies)
Discussion started by: ajiwww
4 Replies

5. Shell Programming and Scripting

Convert binary to text Perl script

Hello everyone, I have a binary file with a structure unknown. I have found 2 perl scripts that it seems to do the convertion but I get sintactic errors when I run them, may somebody test these 2 scripts please and see if really work? One if from here... (10 Replies)
Discussion started by: Ophiuchus
10 Replies

6. Shell Programming and Scripting

Convert binary file to csv and then back to the binary format

Hello *nix specialists, Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my... (7 Replies)
Discussion started by: digidax
7 Replies

7. Windows & DOS: Issues & Discussions

Convert UNIX text file in Windows to recognize line breaks

Hmmm I think I found the correct subforum to ask my question... I have some text files that I prepared in vi some time ago, and now I want to open and edit them with Windows Notepad. I don't have a Unix terminal at the moment so I need to do the conversion in Windows. Is there a way to do this?... (1 Reply)
Discussion started by: frys_hp
1 Replies

8. UNIX for Dummies Questions & Answers

Convert UNIX text file in Windows to recognize line breaks

Hi all, I have some text files that I prepared in vi some time ago, and now I want to open and edit them with Windows Notepad. I don't have a Unix terminal at the moment so I need to do the conversion in Windows. Is there a way to do this? Or just reinsert thousands of line breaks again :eek: ? (2 Replies)
Discussion started by: frys_hp
2 Replies

9. Shell Programming and Scripting

Need to convert delimited text file in UNIX to an Excel file

Dear Users , Need to convert delimited text files in UNix server to an Excel file and move the excel file to Windows environment. Am trying to automate the whole process. Can anyone share the ideas,if they have done similar ones before...Thanks -Meera (1 Reply)
Discussion started by: meerakrish
1 Replies

10. Shell Programming and Scripting

Read csv file, convert the data and make one text file in UNIX shell scripting

I have input data looks like this which is a part of a csv file 7,1265,76548,"0102:04" 8,1266,76545,"0112:04" I need to make the output data should look like this and the output data will be part of text file: 7|1265000 |7654899 |A| 8|12660000 |76545999 |B| The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies
thailpof(8)						      System Manager's Manual						       thailpof(8)

NAME
thailpof - Generic filter for printing Thai text files SYNOPSIS
/usr/lbin/thailpof [-c] [-h host] [-H] [-i indent] [-l length] [-n login] [-P printer_id] [-S] [-w width] [accounting_file] OPTIONS
Prints control characters. Specifies the host name of the job owner. This name can contain Thai characters. Enables half-height printing mode. In printers without a one-pass printing mode, Thai characters are printed on 3 levels, or 3 lines. When half-height printing mode is enabled, the 3 levels are printed in 1.5 lines, which improves the appearance of output. The cost of this improvement is slower print- ing speed. Specifies the amount of indentation. The default value is no (no indentation). Specifies the page length in lines. The default value is 22. Specifies the login name of the job owner. This name can contain Thai characters. Specifies the printer ID in the format that conforms to the Wototo Specification. This format is [bb][mm][nn] where: Is the brand ID, representing the brand of the printer. Is the model ID, representing the model of the printer. Is the code ID, specifying the character code used by the printer. Enables space- compensation mode. Many of the existing tools for text alignment cannot handle nonspacing characters properly. When printing output from such tools, enabling space-compensation mode improves alignment of output text. Specifies the page width in columns. The default value is 80. OPERANDS
Specifies the file to record accounting information. DESCRIPTION
The thailpof filter is a generic print filter for Thai text files. The filter handles the device dependencies of printers and performs accounting functions. At print job completion times, accounting records are written to the file specified by the af field in /etc/print- cap. The filter can handle plain text files and files that have been preprocessed by nroff. Either kind of file can contain Thai characters. The thailpof filter translates nroff control sequences for underlining, superscripting, and subscripting into the proper control sequences for the printer. The thailpof filter can be the specified filter in both the of and the if fields in the /etc/printcap file. For a description of these fields, see printcap(4). To print Thai characters on the flag page using 3-pass mode, you must specify /usr/lbin/thailpof in the of field of the /etc/printcap file. In 3-pass mode, however, the flag page is not printed on one page. Therefore, if you do not plan to print Thai characters on the flag page, or if you are using one-pass mode, do not specify /usr/lbin/thailpof in the of field. NOTES
The lpr command supports a number of options and associated arguments to enable localization features supported by various printers. The following can be used with the thailpof filter: To specify one-and-a-half line printing To enable space-compensation mode. To specify the pathname of the character code table For a complete description of this option and its associated arguments or values, refer to lpr(1). ERRORS
The lf field (default value is /dev/null) in the /etc/printcap file specifies the name of the error log. SEE ALSO
Commands: lpr(1), pr(1), lpd(8), pac(8) Files: printcap(4) Others: i18n_printing(5) thailpof(8)
All times are GMT -4. The time now is 03:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy