I am trying to get a script working that will perform a simple database lookup using the join command.
Here are the two files that I am trying to join:
My desired output is:
The command that I am trying to use to accomplish this is: join -j1 1 -j2 1 -o 1.1 2.2 2.3 1.2 lookup1.txt lookup2.txt
I only get some of the data:
When I substitute the lookup files with my real data (1st file ~ 50 lines, 2nd file ~ 500 files) I only get three lines returned as well. Any idea what I am doing wrong or other methods that will produce the desired result? Thanks in advance.
Hi
I have a problem in sendmail Freebsd when sending emails to yahoo as an example, I get:
Sep 5 10:05:43 local50 sm-mta: STARTTLS=client, error: connect failed=-1, SSL_error=1, errno=0, retry=-1
Sep 5 10:05:43 local50 sm-mta: STARTTLS=client: 43926:error:1407742E:SSL... (3 Replies)
Guys,
I want to join two files. You might have seen this many times. I just don't get the desired output.
Searching the forum, No proper links :(
Input:
File1
test1
test2
test3
File2
is bad
is not bad
Output Needed:
test1 is bad
test2 is bad (4 Replies)
I'm looking for a really simple to use lightweight database. Ideally something open-source that stores data in a (semi-) human-readable format, in case the software isn't working.
Something cross-platform enough that I can use it on my Linux machine, my Mac, or stick it on a USB stick and... (2 Replies)
I am trying to feed a list of IP's to do lookups from a database. My script works only for the first IP but all subsequent IPs output as 'unknown'.
#!/usr/bin/php -q
<?
$ip = file('ip.txt');
foreach ($ip as $ip_num => $ip) {
echo $ip;
$out=sprintf("%u", ip2long($ip));
... (1 Reply)
Write a quick shell snippet to find all of the IPV4 IP addresses
in any and all of the files under /var/lib/output/*, ignoring
whatever else may be in those files. Perform a reverse lookup on
each, and format the output neatly, like "IP=192.168.0.1,
... (0 Replies)