Where is the command lines stored before it is executed?
Clash Royale CLAN TAG #URR8PPP up vote -1 down vote favorite I have such a script in ~/draft $ cat test.sh #! /usr/local/bin/bash for i in ./*;do echo $i done The chunk of code are stored in test.sh , when I run it $ bash test.sh ./first.html ./second.html ./test.sh ./third.html So I run the script name test.sh and get the output. Alternatively, I could run the command directly as: $ for i in ./*; do echo $i; done ./first.html ./second.html ./test.sh ./third.html The second chunk get the identical results. Since the preceding codes resides in file test.sh , what's the filename where the command for i in ./*; do echo $i; done live? bash share | improve this question edited 3 mins ago Kusalananda 111k 15 216 342 asked 1 hour ago rider dragon 227 1 6 New contributor rider dragon is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. add...