problem to read the file in directory from conf

Posted on 2010-01-05
Last Modified: 2013-12-25
I am facing a problem about read a file from the configuration file

configuration file name :-  config2010File.conf       it consist
incomingdir=/v1/jing/edi/Incoming    <-- path

In my program need to read "incomingdir" to know the location to read the file. In incomingdir the file name always in different one.
Anyone have idea how to read it?

Question by:ryanW
    LVL 48

    Accepted Solution

    Assuming bash, based on your tags.

    eval $(grep "^[a-z]" $CONFIG)
    echo $incomingdir

    Open in new window

    LVL 48

    Expert Comment

    The above solution will also give you access to $log and $processdir

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Join & Write a Comment

    Introduction:   Welcome to my first article ever. To begin with, the reason I write this article.  I participated in a question on Experts Exchange about the start command in Windows and there were some discussion about the usage. The discussio…
    This tutorial will discuss fancy secure registration forms, with AJAX technology support. In this article I assume you already know HTML and some JS. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you mig…
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    732 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now