[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OT (it is bash programming) RE: [cobalt-users] Getting variable f rom file



-----Original Message-----

Hi all
Is it possible to define a varialbe from a file as a string? eg. cat file |
grep section
In that case how?

Thanks,
René Mølsted

_____________________________________

[root web]# echo "this is me" > var.txt
[root web]# DOG=`cat var.txt`
[root web]# echo $DOG
this is me
[root web]#

You mean something like that?

Brian Smith 
CCNA, NCSA, CCSP
Network Support Engineer
SOLUSERVE
       www.solunet.com
1571 Robert J. Conlan Blvd., Suite 110
Palm Bay, FL  32905
(888)449-5766
fax: (321)-676-1287