making indices for lines which contains \\mp and kituqa from any tex files in all subdirectories of the directory sbxata. Note that the regular expression '.*' means any letters in any lengh.
sbxata$ ptx -AW "\\\<mp\>.*kituqa.*" */*.tex
making indices for lines which contains \\mp and kituqa from any tex files in all subdirectories of the directory sbxata. Note that the regular expression '.*' means any letters in any lengh, and '\<' word initial and'\>' word final. If using '\<kituqa' for '\<kituqa\>' the command pick ups kituqa, kituqasi and etc and if using 'kituqa\>' for '\<kituqa\>' the command pick ups kituqa, akituqa, ekituqa and etc.
sbxata$ ptx -AW "\\\<mp\>.*\<kituqa\>.*" */*.tex
Grep
Links:
grep (A Unix guide for beginners, Graduate School of Science, Faculty of Science, Kyoto University)
to extract lines which contain \\mp and word from any .tex files in all subdirectories of the directory X in C dirive.
$ grep -rn \\mp.*word c:/X/*/*.tex
to extract \\mp lines from any .tex files in all subdirectories of the directory X in C drive and list lines which contains YYY.
$ grep -rn \\mp c:/X/*/*.tex | grep YYY
Extracting necessary lines from Shoebox (Toolbox) files
$ grep -n \\vl [iput file name] > [output file name]
(extract lines which begin with \vl from the input file and save the
result to the output file. -n --line-number)