Fix File

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


2020.06.11: This source, and development, has been moved to my repository FixFile, and has been ported to unix, although still some additional porting to be done.

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 ...



This is the 'help' text it emits -

        Informatique Rouge - FIX FILES - 11 June, 2020 v.2.0.0
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
 -B[-|+]    Remove UTF-8 BOM from file
 -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) d = header from '\' to '/'. Also sets -B & -n
 -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 ...



2020.06.11: As noted above, these are now OLD sources. The current source should be obtained from the repo FixFile.

link description date size MD5 WIN32 runtime executable (FixF32) 27/03/2012 94,973 8a6212a31b9797bc0b799e71de1ffd33 MSVC8 full windows source 27/03/2012 182,748 b03a08467c4269abaae53ce2b446d110 WIN32 runtime executable (FixF32) 29/05/2008 92,199 9d440a73762375e4b550d08f88e21f78 MSVC8 full windows source 27/04/2008 179,387 754d694830d0e34cc4b4fb99f819c111 WIN32 runtime executable (FixF32) 02/01/2007 91,357 1322438eef3005961897ce53478e2a1e MSVC8 full windows source 02/01/2007 178,860 665de38d42fb1c156565f4c378fe713b WIN32 runtime executable (FixF32) 06/02/2005 86,664 b01683359cb2dfdcbeeacb5c1231cde7 MSVC8 full windows source 05/02/2005 44,590 91fab863c5da46f0f84ac9d45cdfdba6

As noted above the current source has been moved to a git repo, FixFile, but there is an OLD index of many of my personal tools, including FixF...

Have fun ...



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


checked by Tidy  Valid XHTML 1.0 Transitional