Hi,
Let say I have these 3 files (state, list and myscript). I want to be able get the sample output like below when I run myscript. Any one know how to fix the code? TIA.
```text
> cat /home/state
CA
> cat /home/list
CA 100 50 20
AUS 120 61 10
> cat myscript
#!/bin/sh
st='cat /home/state'
grep $st /home/list
> ./myscript # this is the output I want.
CA 100 50 20
```
I tried that before. it will run the "do_that" part, instead of "do_this".
If I add a line after "do_that" e.g. echo "$st", I got "cat /home/state" (without the double quote).