Re: removing blanks from a file



On 29 Jun 2006 18:11:38 -0700, "dpb" <dpbozarth@xxxxxxxx> wrote:

Others have made good suggestion so I'll throw out another possibility
although there _might_ be a misunderstanding on this if so, it is
likely not because of the language... :)

You say the output file is from one of your programs--does this mean
you wrote the program? If so, why not fix the output format so it
doesn't write the spaces to begin with?

Yes, I wrote the program which creates these files.
I'm creating several files, some of which have values like
1000.000, 1000.000, 1000.000
and some
10.000,10.000,10.000 (it's the same model, the only difference is in
the scale).

I could always white several FORMAT-s, for each file (7 files to be
exact) the program is generating, for example
scale=1:1
1 format for every file therefore, 7 formats
scale 1:10
1 format for every file, therefore, 7 formats

The scale usually varies between 1:1 and 1:50, so I suppose I could
write all those manually, and adapt them to the purpose, but surely
there must be another solution.

ldigas
.



Relevant Pages

  • Re: Aligning output columns using tabs
    ... The output file ... I'd suggest reading about format. ... with blanks, ...
    (comp.lang.tcl)
  • [Info-ingres] RES: [Info-ingres] Re: Copy table options ?
    ... But you can use the d1 format to prefix each value with ... (That will bloat the output file quite massively, ...
    (comp.databases.ingres)
  • Re: Publish MBSA Results in Web Format
    ... output file in .XML format for each machine. ...
    (microsoft.public.security)
  • syslog Output Change
    ... I updated a server from AIX 4.3.3 to AIX 5.3 and now there is an extra ... in syslog's output file. ... Old format: ... We have an app that reads this file and parses the line. ...
    (comp.unix.aix)
  • Re: Date Format Change - Help request
    ... You have the data you want to modify on this array, so call data.map and do your text transformation inside the block. ... I get the file output to the proper location, but the DATE format does ... The log2 shows output in the proper format, the date and newdate ARE the ... The output file is still the same as the original input file. ...
    (comp.lang.ruby)