Dipping around in python again and need to create a def that will populate a list(content) with the files that os.walk finds from within this directory and then I will re.search through each files looking for content. In learning Python, can someone point me in the right direction. This is what I have so far.
Hi Pals,
I need some information related .def file in HP-Ux shell scripting. What actaully a .def file contains. It is having all definitions of some functions. But what is the relationship between a .def file and shell script. Can anyone give some examples.
Thanks in Advance.
Best... (1 Reply)
Guys,
I need to iterate populate an array while going over files in directory. Can someone please tell me syntax I tried this but it isn't working ==>
for F in `ls -p "${directory1}" | grep -v "\/"`
do
cd "${directory2}"
cmp "${directory2}"/"${F}" "${directory1}"/"${F}" ... (2 Replies)
File_A contains Strings:
a
b
c
d
File_B contains Strings:
a
c
z
Need to have script written in either sh or ksh. Derive resultant files (File_New_A and File_New_B) from lists File_A and File_B where string elements in File_New_A and File_New_B are listed below.
Resultant... (7 Replies)
Hi,
I have to create a JList and the items I need to display are store in HashMap table. What would be the easiest way to populate this JList. Basically the items I want to display/show in the JList are the key values of the HashMap. Thanks in advance for any suggestions. (0 Replies)
Hi.
I am trying to write a Python programme that compares two different text files which both contain a list of words. Each word has its own line
worda
wordb
wordc
I want to compare textfile 2 with textfile 1, and if there's a word in textfile 2 that is NOT in textfile 1, I want to... (6 Replies)
Hello,
I'm new to the python programming, and I have a question.
I have to write a program that prints a receipt for a restaurant. The input is a list which looks like:
product1
product3
product8
....
In the other input file there is a list which looks like:
product1 coffee 5,00... (1 Reply)
Hello, I have a pretty simple question, but I am new to Python and am trying to write a simple program. Put simply, I want to take a text file that looks like this:
11111 22222
33333 44444
55555 66666
77777 88888
and produce two lists, one containing the contents of the left column, one the... (0 Replies)
I am just trying to concatenate two lists together, but I am not sure what is wrong with my code, it won't run. Thank you for any help.
#!/usr/bin/python
# Takes two lists and returns a list that is the concatenation of both of
# them.
A =
B =
def list_concat( A, B):
print(A)
... (2 Replies)
I am working on klibc. I need to add a new command in kernel. klibc contains a SYSCALLS.def file which declares functions.
Where can I find definition of functions declared in .def file? (1 Reply)
Discussion started by: Vasundhara08
1 Replies
LEARN ABOUT DEBIAN
bind2csv2
BIND2CSV2(1) MaraDNS reference BIND2CSV2(1)NAME
bind2csv2 - convert zone files from BIND to MaraDNS compatible format
DESCRPTION
MaraDNS 1.3 has BIND zone file support. This means it is possible to use BIND zone files in MaraDNS. This makes it easier for people to use
MaraDNS in mixed DNS server environments.
Instead of having direct BIND zone file support, MaraDNS has a script, called bind2csv2, that converts BIND zone files in to the "csv2"
zone file format that MaraDNS 1.2 and 1.3 use. The zone files generated by bind2csv2 are not MaraDNS 1.2 compatible; MaraDNS 1.3 is needed
to read zone files generated by bind2csv2.
bind2csv2 is a Python script, written in version 2.2.3 of the Python interpreter. The script should be compatible with more recent versions
of Python. The script assumes Python is the file /usr/bin/python on your system; if Python is located elsewhere on your system, please
change the first line of bind2csv2. Naturally, you will need the Python interpreter installed on your system to use bind2csv2. This is a
well-known open source language supported by most modern Linux and BSD distributions.
USAGE
To use the script, enter a directory containing BIND zone files, and invoke the script thusly:
bind2csv2 -c zone1 zone2 zone3
Substitute "zone1", "zone2", and "zone3" with a list of one or more BIND zone files you wish be converted in to MaraDNS 1.3 csv2 zone
files.
Once the script is run, you should have files with names like "zone1.csv2", "zone2.csv2", and "zone3.csv2". These files are csv2 zone files
that MaraDNS will be able to parse. Copy these csv2 zone files to a place where MaraDNS can find the zone files.
Should there already be a "zone1.csv2" file when bind2csv2 is run, the "zone1.csv2" file will be replaced.
OPTIONS
None. Bind2csv2 can only be used as above.
BUGS
bind2csv2 is not a perfect zone file converter. In particular, bind2csv2 does not act like BIND when NS records have different TTLs. Please
make sure all NS records in your BIND zone files have the same TTL.
In addition, bind2csv2 also does not support all resource record types that BIND supports. Only the following RRs are supported by
bind2csv2: A AAAA AFSDB CNAME GPOS HINFO ISDN LOC MB MD MF MG MINFO MR MX NS NSAP PTR PX RP RT SOA SPF SRV TXT WKS X25
MARADNS September 2007 BIND2CSV2(1)