View Single Post
Old Jul 21st, 2004, 9:04 AM   #1
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,646
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
ok i have a vb program im writing that sends an argument to our an awk script on one of our linux servers, and then returns a report to my vb program to be displayed. But now i have a problem of getting extra spaces in the page. here is some of the report i get back.

7101088       155gm1b%	0
                INPROCESS
                           88059  278/ 300  162   0 06-23-04 07-16-04 07-12-04
 88543  300/ 300   0   0 07-12-04      08-02-04
 ORDERS
                             UX:sh (sh):                           ERROR                              :                                cnvtmast                            :                                Not found                            
                                ECN FILE /u/in.dt/ecn/melg/eajcyv
                              7101088 copied from 6732801
        6732801
                        |------------------------------------------------------------------------------|
ADVANCED QUALITY PLANNING CHECKLIST:
     Cust:_Bobcat-Gwinner______  Used on model:______________ EAU: __________

and here is what it is suppose to look like, or what it looks like when i just run the awk script from linux and if i put the output into a text file and open it in say textpad or a good text editor.

7101088         155gm1b%    0
INPROCESS
88059  278/ 300  162   0 06-23-04 07-16-04 07-12-04
88543  300/ 300   0   0 07-12-04      08-02-04
ORDERS
  96 04-07-19K BOBCAT-GWN  
  141 04-07-26K BOBCAT-GWN  
  142 04-08-02K BOBCAT-GWN  
   2 04-08-03  BOBCAT-SERV 
  133 04-08-09K BOBCAT-GWN  
ECN FILE /u/in.dt/ecn/melg/eajcyv
               7101088 copied from 6732801
               6732801
|------------------------------------------------------------------------------|
ADVANCED QUALITY PLANNING CHECKLIST:
Cust:_Bobcat-Gwinner______  Used on model:______________ EAU: __________

so my question is how would you go about getting rid of the extra white space. i would normally just write a routine that would remove a certain amount of spaces per line but since the extra spaces in every line isnt the same that wont work. so i was wondering what would be the best way to do this. thanks
__________________
BIG K aka Kyle
Programming Forums
Kyle K Online

Please do not PM or email me programming questions. Post them in the forums instead.
big_k105 is offline   Reply With Quote