DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
BEGIN     { COUNT = 1
            if (TYPE == "") TYPE = "vms";
          }

/^[0-9]/  { if      (TYPE == "vms") print COUNT, $1;
            else if (TYPE == "vmd") print COUNT, $4;
            else if (TYPE == "vmx") print COUNT, $2 + $3;
            else if (TYPE == "rss") print COUNT, $6;

            COUNT = COUNT + 1;
          }

/^ /      { print COUNT, "0";
            COUNT = COUNT + 1; \
          }