Reputation: 4181
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
Reputation: 185171
Try doing this :
bash test.bash | bash -s
Upvotes: 1
Reputation: 3069
Maybe something like that:
sh ./test.sh | sh
Upvotes: 3