

README

http://www-personal.umich.edu/~jaros/lib/win32/alter.htm


ALTER.EXE 	32-bit CONSOLE MODE

Purpose 	Perform various file translations from the command line.

Description 	This program provides search and replace, bitwise editing, clipping, 
		line splitting and various other file alterations from the command line.


ALTER File Filter version 1.11    written by Lincoln '32-bit' Jaros

        alter [options] -i infile -o outfile


          -l           list number of matches only - no actual editing
          -f string    target string to search for
          -r string    replace string to substitute for target
          -m insfile   merge file to substitute for target string
          -h           remove entire line containing target string
          -g           remove all lines not containing target string
          -b string    string to place at beginning of each line of output
          -e string    string to place at end of each line or output
          -j           -b, -e apply to whole file instead of each line
          -a hh        logical AND of each character and hex hh
          -w hh        logical OR of each character and hex hh
          -n           logical NOT of each character
          -k c         remove comment lines starting with c
          -s nn        split input every nn chars and insert CR-LF
          -t nn        keep last nn characters of output (must use -i)
          -c nn        clip nn characters from end of output
          -z           remove Ctrl-Z end of file mark
          -i infile    get input from file infile (required)
          -o outfile   send output to file outfile (required)
          -x           start with blank file - no input file
          -y           use input file for input and output
          -q           quiet mode - no echo

              Strings may include:

              text     literal text
              "text"   literal text
              \r       carriage return
              \n       line feed
              \t       tab
              \b       backspace
              \e       escape
              \q       double quote
              \nn      decimal character nn
              \xhh      hexadecimal character hh

        This program allows search and replace editing functions
        controlled from the command line.
		


DOWNLOAD 

http://www-personal.umich.edu/~jaros/lib/win32/alter.exe








MS-DOS Hilfprogramm

ALTER.EXE


Ersetzt und bearbeitet Text in Dateien im DOS-Modus


Dieses Programm ist etwas langsam, vertrgt keine Umlaute,
vertrgt Leerzeilen, kann diese aber nicht lschen. 



SYNTAX

Notwendige Optionen

-f = Suchtext folgt
-r = Ersatztext folgt
-i = Durchsuchte Textdatei folgt
-o = Ergebnisdatei folgt


alter -l -f SUCHTEXT -r ERSATZTEXT -i Inhalt.txt -o Neuer.txt
- Zeigt nur die Zahl der Treffer an / Schreibt Neuer Text = 0 (notwendig)

alter -f SUCHTEXT -r ERSATZTEXT -i Inhalt.txt -o Neuer.txt
- Ersetzt jeden Suchtext / Schreibt das Resultat in Neuer Text

alter -h -f SUCHTEXT -i Inhalt.txt -o Neuer.txt
- Lscht jede Zeile mit dem Suchtext / Schreibt das Resultat in Neuer Text

alter -y -h -f SUCHTEXT -i Inhalt.txt
- Lscht jede Zeile mit dem Suchtext / Schreibt das Resultat zurck in Inhalt.txt


Usw.


