Sunday, June 5, 2011

2. Search an exact word in (a) file(s) with grep command.

    For searching an expression, word, file and ... we can use 'grep' command in linux.
To find an exact word in a file(s) use 'grep' command as follows:
$ grep -w "one" *.f90
 searching of 'one' in all .f90 files in the directory is the result of this command in terminal.


more info can be found in this website.

No comments:

Post a Comment