I checked CPAN for remove duplicate lines and only found Code::CutNPaste which doesn't sound like what I want. So I will build what I want although I'm sure it's out there somewhere.
I have several files and I attached one of them. I want to sort the file and remove duplicate lines. The file is a list of key phrases to search the internet for. These are long lines so I don't know if this will work. I would like the file to be generic. Is my logic below correct? Check perl file for two inputs: <file-to-be-read-from> <file-to-write-to> Create array which will end up with all non-duplcate lines Open <file-to-be-read-from> Read in <file-to-be-read-from> Search the array If the line read in is not in the array, place it in the array Close <file-to-be-read-from> Open <file-to-write-to> For each line in the array, write that line to <file-to-write-to> Close <file-to-write-to> Sort <file-to-write-to> Thank you; Sherman
Windows Server 2008 Domain Controller Options That Are Not Supported on an RODC Designate a Server as a Preferred Bridgehead Server Setting Site Link Properties What is the Global Catalog Understanding Sites, Subnets, and Site Links Active Directory Sites and Services Ntdsutil Dcpromo repadmin Preparing for Active Directory Installations Dcdiag the Availability of Operations Masters Transfer Domain Level Operations Master Roles Transfer the Domain Naming Master Transfer the Schema Master Transfer Domain Level Operations Master Roles Transfer the Domain Naming Master Transfer the Schema Master Add or Remove the Global Catalog Active Directory Domains and Trusts dcpromo Add Server Roles and Features Active Directory Administrative Center Overview Active Directory Administrative Center: Getting Started Planning Global Catalog Server Placement What is the Global Catalog Performance Tuning Guidelines for Windows Server 2008 R2 Understanding Trust Types Understanding Trust Direction Netdom Trust Understanding When to Create a Forest Trust Creating External Trusts Planning Operations Master Role Placement Planning Operations Master Role Placement Seizing an Operations Master Role Transferring an Operations Master Role How Active Directory Replication Topology Works Create a Site Link Understanding Active Directory Domain Services (AD DS) Functional Levels Planning Global Catalog Server Placement Read-Only Domain Controllers Step-by-Step Guide Enabling Universal Group Membership Caching on a Site Configure Intersite Replication Availability Understanding Replication Between Sites Designate a Server as a Preferred Bridgehead Server Operations Master Roles Scenarios for Installing AD DS Active Directory Federation Services Active Directory Certificate Services Active Directory Lightweight Directory Services Configuring Operations Master Roles Planning Operations Master Role Placement ntdsutil Managing Operations Master Roles Managing Branch Offices with Windows Server 2008 R2 Cached Domain Logon Information Adding the Global Catalog to a Site Read Only Domain Controllers Step-by-Step Guide Planning Operations Master Role Placement Transferring an Operations Master Role Configuring Operations Master Roles Overview of Active Directory Sites and Services Understanding Sites, Subnets, and Site Links Netdom Server Core Installation Option Getting Started Guide Active Directory Administrative Center Overview Set-ADForest Create an External Trust Active Directory Domains and Trusts Domain Controller Roles FSMO Placement and Optimization on Active Directory Domain Controllers Add or Remove the Global Catalog Active Directory Administrative Center: Getting Started Installing an Additional Domain Controller by Using the Graphical User Interface (GUII) Active Directory Domains and Trusts Creating a Site Link Design Understanding Replication Between Sites Active Directory Replication Concepts What Is the Global Catalog Planning Global Catalog Server Placement Enabling Universal Group Membership Caching in a Site Forcing the Removal of a Domain Controller Steps for Removing AD DS Understanding When To Create a Shortcut Trust Understanding Trust Types Select the Scope of Authentication for Users AD DS: Read-Only domain Controllers Determining the Schedule Checklist: Configure the Intersite Replication Schedule Enabling Universal Group Membership Caching in a Site RODC Frequently Asked Questions Repadmin Forcing Replication gpupdate Prepare a Windows 200 or Windows Server 2003 Forest Schema for a Domain Controller That Runs Windows Server 2008 or Windows Server 2008 R2 Prepare a Windows 2000 or a Windows Server 2003 Domain for a Domain Controller That Runs Windows Server 2008 or Windows Server 2008 R2 Understanding Active Directory Domain Services (AD DS) Functional Levels Trust Types: Active Directory Creating External Trusts Creating Domain and Forest Trusts Planning Global Catalog Server Placement Enabling Universal Group Membership Caching in a Site What is the Global Catalog Understanding When to Create a Forest Trust Understanding Trust Types Understanding Trust Direction Select the Scope of Authentication for Users Understanding Sites, Subnets, and Site Links Active Directory Sites and Services Ntdsutil Dcpromo
-- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/