Usage of treesed

USE WITH CARE !! FAITES ATTENTION !!!
usage: treesed pattern1 pattern2 -tree 
       treesed pattern1 pattern2 -files file1 file2 ... 
Treesed searches for pattern1 and replaces pattern1 by pattern2 if pattern2 supplied. If only pattern1 given treesed just searches. Treesed will search in all files and subdirectories of the current directory

Replacment

Example 1: treesed href HREF -files *.html
will replace "href" by "HREF" in all your files called *.html

Example 2: treesed "~home" "/bla/bla/bli" -tree
will replace all "~home" by "/bla/bla/bli" in ALL files in your current directory and subdirectories. Before doing something like this, better SEARCH first. En français: Faites d'abord une recherche AVANT de remplacer (et vérifiez ce que le programme trouve).

Search

Example: treesed "~" -tree
will find all occurences of "~" in all files in current directory (including subdirectories).

Example: treesed "~home" -tree > temp
will search for "~home" and write the output to file temp.


D.K.S.