• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to read the following text file using shell script  RSS feed

 
Ashok kolasani
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
How can I read the text file using shell script.

File content looks like this

PATCH NAME = TEST
FILES AFFECTED = status.ear,sms.war,auto.jar,kat.ear
DB = True

Now I want to read above file and store them into variables then print them on console.
Can anyone help me??Thanks in advance.....
 
Misha Ver
Ranch Hand
Posts: 470
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This place http://www.coderanch.com/forums/f-13/Linux-UNIX is better for your question.

Anyway, could you tell what you've already done and what exactly it is that you're having trouble understanding?
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at java.util.Properties and its load methods.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!