home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15338 < prev    next >
Encoding:
Text File  |  1993-01-08  |  2.7 KB  |  56 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!cs.utexas.edu!swrinde!gatech!usenet.ins.cwru.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!csn!teal!pershing
  3. From: pershing@csn.org (Paul Pershing)
  4. Subject: sed or awk
  5. Message-ID: <pershing.726513629@teal>
  6. Summary: sed or awk for manip. stock market tables; need script
  7. Originator: pershing@teal.csn.org
  8. Keywords: cleaning up stock mkt. lists
  9. Sender: news@csn.org (news)
  10. Nntp-Posting-Host: teal.csn.org
  11. Organization: Colorado SuperNet, Inc.
  12. Date: Fri, 8 Jan 1993 17:20:29 GMT
  13. Lines: 41
  14.  
  15.  
  16. Hello, everyone. I need help. A project I'm involved in takes stock market
  17. tables (i.e., N.Y.S.E, AMEX, NASDAQ) in text form (ASCII) that have been
  18. compiled on a VAXstation 3100 (running VMS), and needs to get them ready
  19. to place in a Mac publishing program, QuarkXpress. I could pass the files
  20. through a PC, Mac, VAX, or even remote Unix if I must, but I need help in
  21. cleaning these files up. First of all, the fractions are all "whole number
  22. fractions," i.e., 11/16, 5/8, 15/16, and so on. Tables have from two to
  23. 11 columns, and I need to place a single tab between each column, remove
  24. all other spaces, close up the whole number fraction with it's companion
  25. numbers, i.e., +5 11/16 we write as +5-11/16 ("-" separates the fraction
  26. from its companion, _when_ there is one). I'm sure that sed, awk or
  27. perl can do this, but I _may_ be limited :) by platform. I have a sed,
  28. perl and awk that runs under Macintosh MPW (Mac Programmer's Workshop),
  29. or I have DOS versions of these (I may be able to get PD version for
  30. VMS...). Can someone point me in the directin I need to clean up these
  31. files? Some samples would help, and maybe I could then add (if needed) to
  32. customize whatever anyone contributes.
  33. This is greatly appreciated, and if this is a bigger deal than I understand,
  34. the company might be willing to pay someone, although I don't know for
  35. sure about this. I'll check if someone needs this assurance.
  36.  
  37. Thanks for your help, please email me and I'll summarize if anyone
  38. wants (I wasn't sure I was posting to the right group)
  39. Paul Pershing
  40. Systems Manager/Editor
  41. Rocky Mountain News
  42. 400 W. Colfax Ave., Denver, CO 80204
  43. 303 892 2633
  44.  
  45.  
  46. -- 
  47. ------------------------------------------------------------------------------
  48. ******** Paul Pershing, Editorial Design/Systems, Rocky Mountain News ********
  49. **** 400 W. Colfax Ave. Denver 80204 (303) 892-2633 * Disclaimers, etc. ****
  50. ------------------------------------------------------------------------------
  51. -- 
  52. ------------------------------------------------------------------------------
  53. ******** Paul Pershing, Editorial Design/Systems, Rocky Mountain News ********
  54. **** 400 W. Colfax Ave. Denver 80204 (303) 892-2633 * Disclaimers, etc. ****
  55. ------------------------------------------------------------------------------
  56.