Changed it up a bit, and added the directory testing... (Remember to NOT have the script in the same directory, or it will get moved along with 91 of your 92 files)
I have a folder that contains say 50 files in a sequential order:
cdf_1.txt
cdf_2.txt
cdf_3.txt
cdf_3.txt
.
.
.
cdf_50.txt.
I need to merge these files in the same order into a single tab delimited file.
I used the following shell script:
for x in {1..50};
do cat cdf_${x}.txt >>... (3 Replies)
Condition1;
If NPID and IndID of both input1 and input2 are same take all the vaues relevant to them and print together as output
Condition2;
IDNo in output: Take the highly repeated same letter of similar NPID-IndID as *1*
Second highly repeated same letter... (0 Replies)
Hello,
I am new to shell scripting and I need your help.
I have found similar scripts in the forum but I need further assistance.
I am building a script to use hourly in cron to mailx me if the number of files in a path is less than e.g 100
I have started with the following:
#!/bin/sh... (2 Replies)
Hi ,
I want to write a simple script.
I have two files
file1:
BCSpeciality
Backend
CB
CBAPQualDisp
CBCimsVFTRCK
CBDSNQualDisp
CBDefault
CBDisney
CBFaxMCGen
CBMCGeneral
CBMCQualDisp
file2:
CSpeciality
Backend (8 Replies)
I am trying to separate a specific pattern match into separate files. Sometimes there is only one pattern match, but other times there could be multiple (up to 6 or 8). Pattern is as follows - its starts with NYZ or VTZ and ends with $$. Again looking to get those blocks of data from one big... (17 Replies)
HI guys,
Could you help me writing a simple version control script for a text files.
the format could be
./version_control <file(s)> (I want it to be able to work with more than 1 file at the same time)
commands are add and get, add means you add new file(s) to the archive, get means you... (4 Replies)
Hi all,
I'm trying to get a bash script working for a program (bowtie) which takes a list of input files (*.fastq) and assembles them to an output file (outfile.sam). All the .fastq files are in one folder in my home directory (~/infiles).
The problem is that the 'bowtie' requires that... (7 Replies)
I have a file Map.hh shown below. I want to put the two classes Phase and Map in two different files Phase.hh and Map.hh. I have forward declaration before the Map class. How can I tackle this situation?
//////////////////////////////////////////////////////////////////////////
#ifndef... (3 Replies)
Hi All,
I need help for doing the following.
I have a input file like:
aaaaaaaaaabbbbbbbbbbbbbbbbbbbb
cccbbbbbaaaaaadddddaaaabbbbbbb
now I am trying to generate a output csv file where i will have for e.g.
0-3 chars of each line as the first column in the csv, 4-10 chars of the line as... (3 Replies)
Discussion started by: babom
3 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)