Fix File

external: MS Windows | Back to Projects | Home
internal: description | help | downloads | ASCII chart | end

Description:

Since I have always been involved in cross-platform programming, the most frequent simple 'fix', was to the line endings, due to the fact that various editors produced different results ... It started as fixfile.asm, 16-bit assembler, then progressed to 32-bits, as FixF32, but usually I store it in an active path, as ff ... so I could do ...

   prompt> ff errant.txt > tempfx.txt

and be able to load 'tempfx.txt' in any windows editor, and it would display correctly ... it progressed as the need arose ...

For example, very early email files would contain the 'tty' backspace characters, as its only form of 'delete' ... of something that has already been 'sent' and 'displayed', was to send a backspace (BS) character - see ASCII chart below - that is, for example, if you typed 'tiny dim' for 'tiny tim', then used the 'backspace' key, in a TTY environment, the final data stream would be -
'tiny dim(BS)(BS)(BS)tim'

   prompt> ff -b backspace.txt -o-tempok.txt

This would produce a 'very readable' tempok.txt, without the BS characters, nor the 'errant' dim characters ... a clean copy ... it continued that way ... for years ... the most recent -c switch 'converted' a text file, to a C/C++ form of data ... just a quick fix ...

top


Help

This is the 'help' text it emits -

        Informatique Rouge - FIX FILES - 25 April, 2008 v.1.0.27
Useage:     FixF32 [@]InputFileName [Switches]
Purpose:    Various 'fixes' like ensure Cr/Lf, and wrap at 1024, etc.
Switches:   Must be preceeded by "-" or "/". Blank or -? = this help...
 -b         Suppress Backspaced duplications
 -c[name]   Output as single C/C++ text form.
 -d[s[nn]]  Delete dup. Cr/Lf & -ds[nn] Delete begin line spaces [nn] chars
 -dh[s]     Delete hi-bit characters -dhs substitute a space.
 -f         'C' Function list extraction. -f:? for help on options)
 -h[2a|?]   Del/Add HTML. (htm=Add, h2a=HEX-to-Asc, or ?=more switches)
 -j[defstwo?] Process xml job file. d=delete e=email f=fix s=spc w=68 see-j?
 -l[s][nnn] [s] Def. split at space ([-s] undo). [nnn] length.
 -n         No addition of eof message ...
 -o[-|+]FileName Output file. -=new +=append. Default is STANDARD OUT
 -r[text]   Remove text listed between [ & ]. -R is remove WHOLE LINES
 -s[nnn[K]] Split output file at nnn[K] size. (Def=250000)
 -t[s][nn]  Set Tab size to nn (Def.=3). s=convert to spaces
 -u[d]      Unix format (No Cr characters) d = header lines from '' to '/'
 -vnn       Toggle verbosity. v0=Off v1-9=On (Def=1)
 -w[af?..]  Convert DIR file to ordered list. (Options=AFTO ? for help)
 -x         Exclude files like these from list. (Also -x@Input)
       Add ^J in front of "text" to only check begin of line,
       and double inverted commas (") must be used if spaces.
                                            Happy fixing ...

top


Downloads

link description date size MD5
FixFe21.zip WIN32 runtime executable (FixF32) 29/05/2008 92,199 9d440a73762375e4b550d08f88e21f78
FixF-21.zip MSVC8 full windows source 27/04/2008 179,387 754d694830d0e34cc4b4fb99f819c111
FixFe19.zip WIN32 runtime executable (FixF32) 02/01/2007 91,357 1322438eef3005961897ce53478e2a1e
FixF-19.zip MSVC8 full windows source 02/01/2007 178,860 665de38d42fb1c156565f4c378fe713b
FixFe16.zip WIN32 runtime executable (FixF32) 06/02/2005 86,664 b01683359cb2dfdcbeeacb5c1231cde7
FixF-16.zip MSVC8 full windows source 05/02/2005 44,590 91fab863c5da46f0f84ac9d45cdfdba6

This is an OLD index of many of my personal tools, including FixF, where you can also download the full source, and a WIN32 runtime executable ...

Have fun ...

top


ASCII CHART

This really has nothing to do with the 'fix file' utility above, but did not find a better place to put this chart ...

ASCII chart

top


checked by Tidy  Valid XHTML 1.0 Transitional