Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Imdougal

    substr, awk

    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]
  2. Imdougal

    merge question

    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
  3. Imdougal

    merge question

    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" }'
  4. Imdougal

    merge question

    Try this: awk -F'^' '{ keys=$2","$4 if (keys in keyarr) print >> "dups" else { keyarr[keys] print >> "uniq" } }' ttfile
  5. Imdougal

    Printable area on laserjet 5si

    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...
  6. Imdougal

    Printable area on laserjet 5si

    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...
  7. Imdougal

    Printable area on laserjet 5si

    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...

Part and Inventory Search

Back
Top