ted
ted

Reputation: 4181

Output of a shell script is another shell script

I have a shell script which will print another shell script to stdout. I need to execute both the scripts (initial script and output script) with a single line bash command. Is it possible?

Upvotes: 0

Views: 98

Answers (2)

Gilles Quénot
Gilles Quénot

Reputation: 185171

Try doing this :

bash test.bash | bash -s

Upvotes: 1

sstn
sstn

Reputation: 3069

Maybe something like that:

sh ./test.sh | sh

Upvotes: 3

Related Questions