What I intend to do is, There is a directory, consisting of 10 files in .v format; I feed in the path for directory in command line and my code has to open all the files in the directory, and look for the word modulekeyword present at the starting of any line in the entire file for all the 10 files, and it should print the word next to moduleconsidered as keyword one in each line. As my .v file has multiple 'module' keywords.
Ex : file.vLine No.2> module GATES(clock,variable); .... .... Line No.100> module FF(op, ip,);
Output expected- GATES in 1st line FF in 2nd line
In reply to Re^2: Parse for a name after a keyword search in all the files, given directory as input
by prash_sri
in thread Parse for a name after a keyword search in all the files, given directory as input
by prash_sri
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |