backticks works in ksh and the posix shell, (also called sh, just to confuse you)
a ksh specific way of doing that would be
var=$(cat text.txt)
this is nice because it nests so easily, like this
file=$(basename $(whence cat)) Mike
______________________________________________________________________
"Experience is the comb that Nature gives us after we are bald."
Is that a haiku?
I never could get the hang
of writing those things.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.