Search Results

Search: Posts Made By: spartan22
2,595
Posted By spartan22
I figured out a solution in Perl. it's a little...
I figured out a solution in Perl. it's a little sloppy but it gets the job done.


#!/usr/bin/perl
use warnings;
$seperator = "===============================================\n";
$ping =...
2,595
Posted By spartan22
Perform an action if certain text exist in output (PERL)
Hello,

I'm attempting to write a tool that checks an IP address for existing PTR records then if there are no PTR records does a ping to see if it response.

Then if there is no response, it...
12,728
Posted By spartan22
All of those solutions worked. Thanks again guys.
All of those solutions worked. Thanks again guys.
12,728
Posted By spartan22
Man... I spent hours trying to figure this out....
Man... I spent hours trying to figure this out. Thanks for the help :)
12,728
Posted By spartan22
Awk to display lines that contain a period only in the first column
I've been trying to figure this out for quite a bit... I'm trying to check the first column for a period and only display the line if it contains a period. Below is a sample of the data i'm working...
1,115
Posted By spartan22
Generate zone files based off subnet
Hi, I'm attempting to generate zone files based off the subnet address of a reverse zone.

For example...
My text file contains the following..

5.4.7.0/24
5.4.7.0/24
68.74.23.0/24...
2,145
Posted By spartan22
Input listed below. Sorry about that. ...
Input listed below. Sorry about that.

'ans_listzones channel=site1-ddns01 slave'

The site name (site1-ddns01) is dictated by the input file.

---------- Post updated 07-17-12 at 10:10 AM...
2,145
Posted By spartan22
Thank's for the reference guide. I cleaned that...
Thank's for the reference guide. I cleaned that script up, still works perfectly.


Here's an example of my input and output...

ans_listzones channel=site1-ddns01 slave
172.in-addr.arpa...
2,145
Posted By spartan22
Redirect output to a different text file depending source of data
I have a list of DNS servers I need to look up information on. Each of these servers has a master and a slave database. Essentially what I need to do is create two text files for each server. One...
2,538
Posted By spartan22
That worked perfectly. Grep doesn't seem to be...
That worked perfectly. Grep doesn't seem to be filtering what I want but it is using the file as the source for the zones.

Below is the code i'm using.

Thank you!

while read LINE; do...
2,538
Posted By spartan22
help with using text file as input
Hello All,

I'm attempting to use a text file as input to a specific field in a command. Below is the command...

Typically it looks like this

ans_dump testzone.com channel=dnsw32 | grep AAAA...
6,665
Posted By spartan22
Delete a row that has a duplicate column
I'm trying to remove lines of data that contain duplicate data in a specific column.

For example.

apple 12345
apple 54321
apple 14234
orange 55656
orange 88989
orange 99898


I only...
3,679
Posted By spartan22
Script Assistance - Outputting to file with Awk
I'm trying to take a list of domains, find out the MX resolve it to IP then find out what the NS is and output the contents to a new file.

The only problem i'm having is when checking the Ip or...
4,650
Posted By spartan22
Digcheck SH script. Only want to see MX output.
I want to filter out all the junk and only see the Domain name and Mx records. Can't quite figure out how to get this output.

This is what i'm using to get the output.

dig mx -f domains.txt >...
22,046
Posted By spartan22
If i remove the section after the Pipe it will...
If i remove the section after the Pipe it will list all the files straight down the page is how i found out it was actually finding the files.

I let it run through, it takes about 30 seconds and...
22,046
Posted By spartan22
It does actually find the files, but it isn't...
It does actually find the files, but it isn't moving them into the new directory... any other suggestions?


-edit does it matter if the file names end in .db and aren't pure text files?
22,046
Posted By spartan22
Using grep to move files that contain a line of text
I have a folder with about 4000 files in it. I need to extract the files that contain a certain line of text to another directory.

for example files with 'ns1.biz.rr.com' need to be extracted to...
9,286
Posted By spartan22
Everyone of those solutions works grep -v -e...
Everyone of those solutions works

grep -v -e "mx1.rr.biz.com" -e "ns2.ri.biz.com" filename > newfile

does exactly what i wanted, thank you.
9,286
Posted By spartan22
removing multiple lines of text in a file
Hi,

I'm trying to remove multiple lines of text based off a series of different words and output it to a new file

The document contains a ton of data but i want to delete any line that has the...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 04:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy