I have a file abc.txt in my home folder.
~$ cat abc.txt
I want want to execute a grep command like
~$ grep 'dat' abc.txt
which gives date in result and date is a shell command. So I want to execute the command which I got in grep result (date) in the same line of grep command.
Is it possible by using
| operator like
~$ grep 'dat' abc.txt | [Some command syntax like xargs] which gives the result current time like Fri Nov 4 18:55:06 IST 2016