Some Useful UNIX Files and Commands
Some Useful UNIX Files and Commands
by D.W. Hyatt
Helpful Files
The following files may be useful when trying to write your PVM programs in this class.
grep pvm_pack *.cpp will look for occurrences of the string "pvm_pack" in all
files ending in ".cpp".
grep "My name is" * will look in all files in a directory trying to find the string
"My name is".
Input / Output Redirection
The UNIX operating system has a number of useful tools for allowing other programs to
work with one another. One of the ways to handle screen input and output with I/O
Redirection, and ways to link several programs together with "pipes".
With the use of the > for sending output to a file, a user can easily covert from screen
display programs to ones that save the output without major changes in rewriting code. It
is also very convenien for grabbing the output from various UNIX commands, too.
In order to convert a program that originally required lots of user input into one that runs
on its own, the input redirection symbol < can be used to say where to get the values.
Pipes
The vertical bar "|" is called the pipe symbol, and it is designed for linking commands
together to make them more powerful. The way it works is that the output from one
command is sent as input to the next, thus creating a new command.