<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Include a File in other text file like C Programs in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/include-a-file-in-other-text-file-like-c-programs/m-p/3818526#M24121</link>
    <description>&lt;!--!*#--&gt;When making DB maps for sendmail's access, you can have multiple source files, and 'cat' them through 'makemap' to create the DB file.  For example, I use this:&lt;BR /&gt;&lt;BR /&gt;  LCL_ACC=/etc/mail/access&lt;BR /&gt;  LCL_FILE=/etc/mail/access.rejects&lt;BR /&gt;  LCL_MAP=/etc/mail/access.db&lt;BR /&gt;  cat $LCL_ACC $LCL_FILE | makemap hash $LCL_MAP&lt;BR /&gt;&lt;BR /&gt;The other thing you can do (if you want to remember the original values) is just to append to the DB using:&lt;BR /&gt;&lt;BR /&gt;  echo &lt;LINE-DATA&gt; | makemap -o hash $LCL_MAP&lt;BR /&gt;&lt;BR /&gt;This will append '&lt;LINE-DATA&gt;' as a DB record to the local database.&lt;BR /&gt;&lt;BR /&gt;Of course, if you ever want to get a list of the addresses again, you have to use un-makemap the DB:&lt;BR /&gt;&lt;BR /&gt;  makemap -u hash $LCL_MAP&lt;BR /&gt;&lt;BR /&gt;This lists the contents of the DB.&lt;BR /&gt;&lt;BR /&gt;I hope this helps you.&lt;/LINE-DATA&gt;&lt;/LINE-DATA&gt;</description>
    <pubDate>Sun, 09 Jul 2006 18:51:07 GMT</pubDate>
    <dc:creator>Stuart Browne</dc:creator>
    <dc:date>2006-07-09T18:51:07Z</dc:date>
    <item>
      <title>Include a File in other text file like C Programs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/include-a-file-in-other-text-file-like-c-programs/m-p/3818522#M24117</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I want to include a file in other text file in linux like as we were doing while writting "C" Programms for referencing the other files.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Infact I don't want to edit my main file "A"&lt;BR /&gt;While I want some changes to take place because of changes in "A" . So I want one more file "B" which will be changes by me frequently and will be included in "A" .&lt;BR /&gt;&lt;BR /&gt;So that the function using file "A" will work efficiently without touching the file "A".&lt;BR /&gt;&lt;BR /&gt;Pls help&lt;BR /&gt;&lt;BR /&gt;Sachin Rajput&lt;BR /&gt;HCL</description>
      <pubDate>Thu, 06 Jul 2006 07:11:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/include-a-file-in-other-text-file-like-c-programs/m-p/3818522#M24117</guid>
      <dc:creator>Sachin_48</dc:creator>
      <dc:date>2006-07-06T07:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Include a File in other text file like C Programs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/include-a-file-in-other-text-file-like-c-programs/m-p/3818523#M24118</link>
      <description>To include other files in shell scripts, you can use the "source command"&lt;BR /&gt;&lt;BR /&gt;&amp;gt; cat fileA&lt;BR /&gt;&lt;BR /&gt;# This is file A, and will source fileB&lt;BR /&gt;source fileB&lt;BR /&gt;# Now file A continues&lt;BR /&gt;command ...&lt;BR /&gt;command ...&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jul 2006 07:27:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/include-a-file-in-other-text-file-like-c-programs/m-p/3818523#M24118</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2006-07-06T07:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Include a File in other text file like C Programs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/include-a-file-in-other-text-file-like-c-programs/m-p/3818524#M24119</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;If you're talking about shell scripts, either 'source &lt;FILE&gt;' or '. &lt;FILE&gt;' (period), which is probably more commonly used, will accomplish this.  Check out 'man .'.&lt;BR /&gt;&lt;BR /&gt;PCS&lt;/FILE&gt;&lt;/FILE&gt;</description>
      <pubDate>Thu, 06 Jul 2006 12:48:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/include-a-file-in-other-text-file-like-c-programs/m-p/3818524#M24119</guid>
      <dc:creator>spex</dc:creator>
      <dc:date>2006-07-06T12:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Include a File in other text file like C Programs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/include-a-file-in-other-text-file-like-c-programs/m-p/3818525#M24120</link>
      <description>HI Infact what I want is &lt;BR /&gt;&lt;BR /&gt;I have /etc/mail/access file and when I make it it becomes /etc/mail/access.db&lt;BR /&gt;&lt;BR /&gt;But Now I want that in /etc/mail/access I will specify one line which will address to another file so that while making hash file /etc/mail/access.db &lt;BR /&gt;&lt;BR /&gt;It will encrypt both /etc/mail/access and the one specified inside.&lt;BR /&gt;&lt;BR /&gt;Pls Revert.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Sat, 08 Jul 2006 03:12:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/include-a-file-in-other-text-file-like-c-programs/m-p/3818525#M24120</guid>
      <dc:creator>Sachin_48</dc:creator>
      <dc:date>2006-07-08T03:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Include a File in other text file like C Programs</title>
      <link>https://community.hpe.com/t5/operating-system-linux/include-a-file-in-other-text-file-like-c-programs/m-p/3818526#M24121</link>
      <description>&lt;!--!*#--&gt;When making DB maps for sendmail's access, you can have multiple source files, and 'cat' them through 'makemap' to create the DB file.  For example, I use this:&lt;BR /&gt;&lt;BR /&gt;  LCL_ACC=/etc/mail/access&lt;BR /&gt;  LCL_FILE=/etc/mail/access.rejects&lt;BR /&gt;  LCL_MAP=/etc/mail/access.db&lt;BR /&gt;  cat $LCL_ACC $LCL_FILE | makemap hash $LCL_MAP&lt;BR /&gt;&lt;BR /&gt;The other thing you can do (if you want to remember the original values) is just to append to the DB using:&lt;BR /&gt;&lt;BR /&gt;  echo &lt;LINE-DATA&gt; | makemap -o hash $LCL_MAP&lt;BR /&gt;&lt;BR /&gt;This will append '&lt;LINE-DATA&gt;' as a DB record to the local database.&lt;BR /&gt;&lt;BR /&gt;Of course, if you ever want to get a list of the addresses again, you have to use un-makemap the DB:&lt;BR /&gt;&lt;BR /&gt;  makemap -u hash $LCL_MAP&lt;BR /&gt;&lt;BR /&gt;This lists the contents of the DB.&lt;BR /&gt;&lt;BR /&gt;I hope this helps you.&lt;/LINE-DATA&gt;&lt;/LINE-DATA&gt;</description>
      <pubDate>Sun, 09 Jul 2006 18:51:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/include-a-file-in-other-text-file-like-c-programs/m-p/3818526#M24121</guid>
      <dc:creator>Stuart Browne</dc:creator>
      <dc:date>2006-07-09T18:51:07Z</dc:date>
    </item>
  </channel>
</rss>

