1

I grep a command from a file and I would like to pipe and execute them? Anyone has an idea?

cat README | grep source 

gives source myEnv.sh

Donald Duck
  • 8,409
  • 22
  • 75
  • 99
  • Learn a little about Useless use of `cat`. https://stackoverflow.com/questions/11710552/useless-use-of-cat – iamauser Jan 25 '18 at 03:13

1 Answers1

1

You could surround the command with backticks:

$ `cat README | grep source`
Mureinik
  • 297,002
  • 52
  • 306
  • 350