Re: removing blanks from a file



Bil Kleb wrote:

Luka Djigas wrote:

I have a file, which is the output of one of my programs. It's a
script file, and therefore it's not supposed to have blanks in it.

I don't completely understand the "script file" statement
so this may be way off the mark, but I'd just use a dynamic
language or a *nix filter like awk to remove the spaces
from the file, e.g.,

The usual set of unix utilities includes a program called tr that
can do this. There is a set of such utilities that will run as
command line utilities under 32 bit windows. I should have the URL,
but I don't have it right now. I think it is also part of the
"Services for Unix" package from microsoft, available as a free
download.

tr -d ' ' < infile > outfile

(The command line quoting conventions are different under windows.)

This is most likely much faster than a Fortran program, if you have
large files.

-- glen

.



Relevant Pages

  • Re: Windows Update download window hangs
    ... I implemented Mark Brown's solution re error 0x00000485, ... Gives "Bad command or file name". ... For example, the DLL Help Database ... >> registered in either Internet Explorer or Windows Explorer. ...
    (microsoft.public.windowsupdate)
  • Re: XP Crash/Restart and Error Reporting
    ... "Mark L. Ferguson" wrote: ... Open a run command and type in these commands to see if there is a conflict ... How to perform a clean boot in Windows XP ... Try to use the Verifier.exe command to see which Drivers not Verified on ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: What does % mean?
    ... The "%" symbols are delimiters, which means they mark the ... Windows is installed on the ... in a command, you don't have to worry whether Windows is installed on C or D ...
    (microsoft.public.windowsxp.newusers)
  • start cmd command problem
    ... I need to find a way to use the start command directly. ... Mark L. Ferguson Wrote: ... > FAQ for Windows Antispy ... > Zlatin Boykov ...
    (microsoft.public.windowsxp.help_and_support)
  • RE: re-setting boot partition
    ... Description of the Windows 2000 Recovery Console ... For a Microsoft Windows XP version of this article, ... MB of hard disk space on your system partition to hold the Cmdcons folder ... Windows NTBoot Console Command Interpreter. ...
    (microsoft.public.win2000.setup_upgrade)