bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: remove paths


From: Paul Jarc
Subject: Re: remove paths
Date: Fri, 20 Jul 2001 11:57:20 -0400
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7

Andreas Schwab <address@hidden> writes:
> address@hidden (Padraig Brady) writes:
>|> ?
>|> newpath=`echo $PATH | tr : '\n' | uniq | tr '\n' :`
> 
> uniq only works on sorted input (it only compares successive lines).

sort -u (or sort|uniq) could be used instead.  But this will still
fail if any of the entries happens to contain a newline, and it
requires that you have these external commands installed.  Not that
these are major obstacles.


paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]