June 2000
Intermediate to advanced
556 pages
8h 45m
English
The xFS utility purposely outputs file sizes, using a fixed number of digits, like this:
CD-ROM reference=13012.txt <size>0000005181</size>
We have a tool, (xgrep), that enables us to match patterns within size elements only. With xgrep, it is straightforward to find all files occupying more than a given number of bytes. In this example, the sizes of files in excess of 500,000 bytes are printed. First, we create an xFS file from the contents of the current directory.
CD-ROM reference=13013.txt
C>python xdir.py > fs.xml
The first few lines of the generated XML file are shown below.
CD-ROM reference=13014.txt
C>type fs.xml <?xml version="1.0"?> <!DOCTYPE xFS SYSTEM "xFS.dtd"> <xFS> <pattern>.\*</pattern> ...Read now
Unlock full access