Skip to main content

12.4) Searching Recursively


So to search recursively:

grep -r ‘0.43’ *

If the command is not allowed then it will say. Now for a more specific use, look at the snippit of a file on the following page. This is part of an input file that runs a research model. It is a model of atmospheric flow. The atmosphere is modelled in the computer by assigning cells that can be thought of as boxes. In order to model the air in the computer you need to represent the atmosphere in the model as these boxes. This is done by using values of the atmosphere at regular locations (assigned to be the boxes). There are 800 locations in the horizontal and for each of these locations there are 200 locations in the vertical and 1 in the third dimension. When the third dimension is 1 then it is a 2D simulation and we are ignoring the third dimension. ‘NPES’ is the number of computer processors to be used when it runs. The setup file is requesting to use 100 processors.