wwWendt.de

     

 

 

Tech » Freeware » Win32 » TxtFilter


Bitte beachten Sie die Hinweise!
Please read the disclaimer!

TxtFilter

Filtert und konvertiert Textdateien (ASCII) / Filters and converts text files

Win32 Console Application

TxtFilter screenshot

Download TxtFilter.exe (Zip file 27 kB)

Beschreibung

Abstract

Filter and convert text files.

Filtering: skip lines containing/not containing a list of keywords or regular expression

Conversion: make upper case, lower case

Misc: prepend line numbers

Systemanforderungen

Requirements

Windows 9x or Windows NT >= 4
Source was compiled on VC 6 (should compile everywhere with small modifications)

Installation

Installation

Copy/extract to any folder. (For easier access, add this folder to your PATH environment variable)

Anleitung

Usage

TxtFilter [OPTIONS] [<INPUT] [>OUTPUT]
type [MASK] | TxtFilter [OPTIONS] [>OUTPUT]

Enter TxtFilter -? for a list of options.

Samples:

Copy lines containing 'error' or 'warning' (ignore case) from scr.txt to out.txt:
TxtFilter -ic -ferror -fwarning <scr.txt >out.txt
Copy lines containing 'foo bar' (exact spelling) from scr.txt to out.txt
TxtFilter -f"foo bar" <scr.txt >out.txt
Copy lines not containing 'foo' or 'bar' (exact spelling) from scr.txt to out.txt
TxtFilter-iv -ffoo -fbar <scr.txt >out.txt
Regular expressions can be used for more sophisticated matching:
copy lines that start with 'a' or end with 'z'
TxtFilter -reg"^a|z$" <scr.txt >out.txt
The 'type' command can be used to process multiple files by specifying a mask:
copy all lines from all *.txt files to out.txt, prepend line numbers and convert to lower case
type *.txt | TxtFilter -lc -ln >out.txt
Also, the TxtFilter command can be chained:
copy all lines from all log files that do not contain '192.168.' and contain 'query':
type *.log | TxtFilter -iv -f"192.168." | TxtFilter -fquery >out.txt
 

Known issues

Poor checking: binary files or extremly long lines will propably RIP.


– « TxtFilter » Wait

Nach oben
 
     
     
     

hometopcontact
© martin wendt