![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Print to ps2pdf print queue | Sean_69 | SUN Solaris | 2 | 10-22-2007 12:00 PM |
| Filter by modify date. | millerdc | Shell Programming and Scripting | 2 | 07-29-2007 10:48 PM |
| Print Problem in UNIX. Need to know the option to specify the print paper size | ukarthik | HP-UX | 1 | 06-07-2007 10:35 AM |
| Modify Print Orientation, Font and Pitch | mad_dog | AIX | 2 | 07-24-2006 09:41 AM |
| How do I get awk to print a " in it's print part? | LordJezo | Shell Programming and Scripting | 2 | 06-27-2006 10:16 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Trying to modify a print filter!
Ok, the filter looks like this.
Code:
awk ' BEGIN{printf ("^[E^[&l2a0o7.27C^[(s0p16.67h0T");} \
{ \
printf ("%s^M\n", $0); \
} \
END{printf ("^L^[E");}'
This is sending escape sequences to the printer. What I also would like to do is filter out certain pages. I only want the contant between two markers. Start Marker=1Q2Q3Q4Q, End Marker=5Q6Q7Q8Q. I also need the actual line that the marker is printing on, minus the marker, however, keeping the integrity of all the positions on that line. Thanks in advance! Last edited by Yogesh Sawant; 04-04-2008 at 02:40 PM.. Reason: added code tags |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|