Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to edit a pcl (binary) file ? Post 302984486 by Corona688 on Wednesday 26th of October 2016 11:25:23 AM
Old 10-26-2016
Perl is specifically designed to be binary-safe and have unlimited line lengths, is the thing. It's better suited to editing binary files than awk.

I bet it was the line lengths that were tripping up awk. On AIX, it'd have a maximum length of 2048 or so, and a binary file would seem to awk as a small number of gigantic lines, newlines appearing anywhere only by coincidence.
This User Gave Thanks to Corona688 For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

print a file contains binary and pcl file

I have a file that contain printer escape codes and text. How can I place the image on the top of each page in that file and print that text file out with the image in Unix. Thank you. (0 Replies)
Discussion started by: caol
0 Replies

2. HP-UX

PCL question

Good People, My issue is an aging laserjet4si and its inability to interpret anything beyond PCLv2. Would anyone happen to know an easy way to force just one queue into using only PCL2 formatting? I dug around in the interface script and in model.orig but didn't see anything immmediately... (0 Replies)
Discussion started by: Eronysis
0 Replies

3. Solaris

compiled binary file gives "cannot execute binary file"

Hi, I have two Solaris machines. 1. SunOS X 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-1500 2. SunOS Y 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-60 I am trying to buiild a project on both these machines. The Binary output file compiled on machine 2 runs on both the machines. Where... (0 Replies)
Discussion started by: scgupta
0 Replies

4. HP-UX

HP/Ux pcl printing

Hi, I have a pcl file with a color invoice. Can you please advise me how I can print it directly from Hp/Ux command line to a network printer with a known IP address. The printer model is Xerox Docu Color 1632. How can I configure that printer under HpUx and which command is for printing pcl... (2 Replies)
Discussion started by: piooooter
2 Replies

5. AIX

How convert PCL or PDF file to text in AIX

I need to conver a PCL or PDF file to text in AIX, and I donīt know how. (0 Replies)
Discussion started by: 10789
0 Replies

6. UNIX for Dummies Questions & Answers

Create a PCL DUPLEX File using ghostscript-8.62

table.ubbfoot {background-color="#9999ff"} td.ubbfoot1 {font-size=8pt; font-family=arial,helvietica,swiss; color="#000000";} td.ubbfoot2 {font-size=8pt; font-family=arial,helvietica,swiss; color="#ffffff";} hello, i want to create PCL Duplex Output (to print) from a pdf File. i uses itanium (64)... (0 Replies)
Discussion started by: chzi
0 Replies

7. Shell Programming and Scripting

Adding to a PCL file for print - in a script

I am trying to add some variable print to a list of pcl files within a folder. Am doing some programming within perl, bash and some other scripts. (Open to a format and language). I need to add an incrementing number (variable that will increment by one each time) to the first page of each pcl... (1 Reply)
Discussion started by: mach1
1 Replies

8. Programming

Adding to a PCL file for print

I am trying to add some variable print to a list of pcl files within a folder. Am doing some programming within perl, bash and some other scripts. (Open to a format and language). I need to add an incrementing number (variable that will increment by one each time) to the first page of each pcl... (2 Replies)
Discussion started by: mach1
2 Replies

9. 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
IP2HOSTNAME(1)						      General Commands Manual						    IP2HOSTNAME(1)

NAME
ip2hostname - converts IP addresses to their respective hostnames SYNOPSIS
ip2hostname [-h] [ -p printf_format ] [ [-i extension] file [...] ] DESCRIPTION
-h help (shows this usage information) (mnemonic: 'h'elp) -p printf_format use this printf format for IP address and hostname, respectively. The default format is '%.0s%s', which supresses the printing of the IP address (i.e. "%.0s" specifies printing a string with a maximum width of zero). To maintain column widths (since both the IP address and hostname vary in lenght), a format like this may be useful: '%-16.16s %-20s' (mnemonic: 'p'rintf format) -i extension edit the files in place (rather than sending to standard output) This option requires file name(s) argument(s). The extension is added to the name of the old file to make a backup copy. If you don't wish to make a backup, use "-I". (mnemonic: edit 'i'n place) -I like "-i" but no backup is made. (mnemonic: edit 'I'n place, trusting this script 'I'mplicitly. ;^) SEE ALSO
add_ds.pl(1), add_txrx(1), event2vrule(1), flowscan(1), locker(1) AUTHOR
This manual page was written by Anibal Monsalve Salazar, for the Debian Project. IP2HOSTNAME(1)
All times are GMT -4. The time now is 03:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy