how to use one commands output
#root#] ls `cut -d " " -f 1 temp.txt`
this commands works properly for me (I am getting one file name as an output which is required)...The output from cut command will be replaced after ls. Please correct if I am worng.
Now, the below command is not working for me; though they are similar.
#root#]grep "temp" `ls `cut -d " " -f 1 temp.txt``
Logically, I shud get some output from ls and this shud act as file name for grep command. But this is not working...