Hi, Paul, :)
On Tue, 18 Sep 2001, Paul Johnson wrote:
> On Mon, Sep 17, 2001 at 03:25:20PM -0700, Jason Tiller wrote:
> > I'm trying to write a short script to remove duplicate entries in
> > my PATH variable.
> The script I use to do this is
>
> print join ":", grep !$seen{$_}++, split ":", $ENV{shift}
Ah, *smooth*. Gotta get comfortable with those 'grep' and 'map'
functions...
Thanks for the tip! That's great stuff.
---Jason Tiller
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- Removing duplicate PATH entries? Jason Tiller
- Re: Removing duplicate PATH ent... Jeff 'japhy/Marillion' Pinyan
- Re: Removing duplicate PATH ent... Jason Tiller
- Re: Removing duplicate PATH ent... Paul Johnson
- Re: Removing duplicate PATH ent... Jeff 'japhy/Marillion' Pinyan
- RE: Removing duplicate PATH ent... Gibbs Tanton - tgibbs
- RE: Removing duplicate PATH ent... Jason Tiller
- RE: Removing duplicate PATH ent... Wagner Jeff Civ Northrop Grumman/TTMS
- Re: Removing duplicate PATH ent... Jason Tiller
- Re: Removing duplicate PATH ent... Paul Johnson
