Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!hsdndev!cmcl2!adm!news From: KX10LYC0%TWNITRI1.BITNET@cunyvm.cuny.edu Newsgroups: comp.unix.questions Subject: Help for creating tag file by awk? Message-ID: <27192@adm.brl.mil> Date: 13 Jun 91 13:05:14 GMT Sender: news@adm.brl.mil Lines: 35 Hello: I want to create a tag file for my source program written in Forth, I had seen that the C source programs can be searched by this method. Say, I have a large source tree which contains many subdirectories and files. I hope to create an index file which can tell me where or which file has the definitions which I wanted. For example. I want to keep an index (tag) file which includes all the definitions beginning with ": ". ex. in file_1 : definition1 ... ; in file_2 : definition2 ... ; in dir1/file3 : definition3 ... ; ... in file_n : definitionn ... ; then the index (tag) file contains the file names & definitions of above all. I knew the 'awk' can do this well, but I just don't know how to do. I saw someone used the "vi -t definition", then he will edit the file which contained the definiton (by C program). I am not sure that this method can apply to the Forth source porgram. Does someone can tell me how to do it? Thanks! Yin-Chih Lin Bitnet: KX10LYC0@TWNITRI1 Internet: KX10LYC0%TWNITRI1.Bitnet@CUNYVM.CUNY.EDU