Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

read string in file and set variable 1

Status
Not open for further replies.

specv

Programmer
Aug 8, 2001
42
CA
Hi,

I have a file named "property.txt" that contains only one string, ex : specv2002. What I want to do is read this string and set a shell variable with the string in a batch file.

Someone have an idea?

Thanks,

Phil
 
Code:
prop=`cat "property.txt"`
echo $prop



Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top