I m trying to work some bash scripts on my own.
Let's say I'd like add "hi" at the beginning of lines such as;
a="find . -type f" $ for i in $a;do echo hi $i; done
but output is:
hi find hi . hi -type hi f
I'd like to put every beginning of variable execution as file output, which is here a, "hi" how can i do that?
EDIT: i want to add hi to very fron of "a" variables output, but this script adding hi every line of a..
EDIT: for type -f to -type f, thanks @Terrance
may output be;
hi ./me hi ./you
sorry for unclear question i hope may edit work...