![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Oct 2003
Location: Atlanta
Posts: 2,840
|
Shell command output unique IDs... comm command
i'm using the line command comm but i'm getting zero results.
comm -23 newid.txt master.txt > new.txt I'm trying to pull all the unique id's from newid.txt is there another method I can use? both files have been sorted already. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Coupon Guru
Industry Role:
Join Date: Mar 2009
Location: Minneapolis
Posts: 10,973
|
-23 disregards columns 2 and 3, is that what you're looking for? without seeing a sample of each file it's hard to guess.
Have you tried something like this: diff newid.txt master.txt > new.txt
__________________
Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more! AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Coupon Guru
Industry Role:
Join Date: Mar 2009
Location: Minneapolis
Posts: 10,973
|
did you get this figured out?
__________________
Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more! AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Dec 2006
Posts: 463
|
If you want hit me up on icq. I can help you out.
__________________
ICQ: 335034 For sale: oojz.com / upbot.com / iMarijuana.com / toughmarketing.com / playfulencounter.com (website included) Misc.: 2x ATX2 licenses ($50 each) ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
If you just want unique names ...
Here is a Perlish way to do it ... Code:
#!/usr/bin/perl use CGI::Carp qw/fatalsToBrowser/; use CGI qw/:standard/; use strict; use warnings; print "Content-type: text/html\n\n"; my $raw="file1"; #my $sorted="file2";#open and print file open RAW,"<", $raw or die "<raw"; my @array=(<RAW>); my %seen = (); my @unique = grep { ! $seen{ $_ }++ } @array; foreach my $unique( @unique ){ chomp; print "$unique<BR>\n"; } |
![]() |
![]() ![]() ![]() ![]() ![]() |