This simple piece of code worked by printing the line
numbers where field 6 ends with DM:
[code]
awk '
$6 ~/.*DM$/ {
print "PROCESS DM AT LINE ", NR
continue
}
{
print "PROCESS NON DM AT LINE ", NR
}'
[\code]
This posting process insists on editing the last two lines,
they should read
print keyarr[i]>"uniq"
with i enclosed in square brackets after keyarr
Ok, I missed the last part. To get the last record with each key try this:
awk -F'^' '{
keys=$2","$4
if (keys in keyarr)
print keyarr[keys] > "dups"
keyarr[keys] = $0
}
END {
for (i in keyarr)
print keyarr[i] > "uniq"
}'
The character and pitch I'm using on a particular pre-printed form works great.
The form has a narrow left margin and a narrow right margin, and I just need to print one more char without squeezing the characters closer together.
The characters I'm trying to print are money values e.g...
Thanks, that works perfect with a value of -65.
After a few print tests, it took a while to notice that the right margin is being clipped.
The pitch is set to 12 and prints 96 chars on a line, unfortunately I need to print 97. The right margin escape sequence and all documentation I can find...
My company has pre-printed stationary which requires printing to start between 1/8" and 1/4" from the left edge, but we have not been able to set the left margin to less than 1/4".
Is there any way using PCL to send a text file from UNIX to the printer to use a margin of less...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.