How can I pass arguments to a command in unix? For example, if I have to open a file:
R> vi john/pic/mars/NASA/rover.txt In the above vi command, I want to replace "mars" with a variable, and pass the variable value in the same line, as in:
R> vi john/pic/$variable/NASA/rover.txt | $varaiable=pluto Of course this doesn't work. But I hope my question is clear. Can anyone help me with this?