nanode
01-30-2002, 03:32 PM
I'm pretty decent with basic bash scripting, but I cannot figure out howto assign the contents of a text file to a variable.
Suppose I have a file foo.log and I want to assign it to x
Is there a way to pipe so that:
x=(contents of foo.log)
Thanks
Suppose I have a file foo.log and I want to assign it to x
Is there a way to pipe so that:
x=(contents of foo.log)
Thanks