source: branches/irods-mockup/tools/GaussView/remove_chk.awk @ 119

Revision 119, 339 bytes checked in by pkopta, 12 years ago (diff)
  • Property svn:executable set to *
Line 
1/^%chk=/        {
2                prefix = substr($0, 1, 5);
3                full_path = substr($0, 6);
4                match(full_path, /.+\\/);
5               
6                if (RLENGTH != -1) {
7#                       path = substr(full_path, 1, RSTART + RLENGTH - 1);
8                        file_name = substr(full_path, RSTART + RLENGTH);
9                        printf "%s%s\n", prefix, file_name;
10                } else {
11                        print;
12                }
13        }
14
15!/^%chk=/       {
16                print;
17        }
Note: See TracBrowser for help on using the repository browser.