Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PERL/UNIX: You have a text file with the following: CN=DL.WG.UTO.EAS,OU=Trusted Groups,DN=ASURITE,DN=ad.asu.edu CN=DL.ORG.UTO,DN=ASURITE,DN=ad.asu.edu CN=DL.WG.Staff.Poly,DN=ASURITE,DN=ad.asu.edu CN=Domain Users,DN=ASURITE,DN=ad.asu.edu Write a Perl script to remove everything except the name

PERL/UNIX: You have a text file with the following:

CN=DL.WG.UTO.EAS,OU=Trusted Groups,DN=ASURITE,DN=ad.asu.edu CN=DL.ORG.UTO,DN=ASURITE,DN=ad.asu.edu CN=DL.WG.Staff.Poly,DN=ASURITE,DN=ad.asu.edu CN=Domain Users,DN=ASURITE,DN=ad.asu.edu

Write a Perl script to remove everything except the name of the security group. There are several ways to accomplish this

HINT: You could also use a combination of split and substr instead

Sample output:

% ./myScript.pl domain_groups.txt DL.WG.UTO.EAS DL.ORG.UTO DL.WG.Staff.Poly Domain Users

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Define Management or What is Management?

Answered: 1 week ago

Question

What do you understand by MBO?

Answered: 1 week ago