[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: 4 queries
On Wed, Feb 07, 2001 at 11:14:18AM +0530, ambarish pathak wrote:
> or for a specific user in ~/.bash_profile or ~/.profile the folowing
> PATH=$PATH:/ur/new/path:/another/of/ur/new/path
A trick from my .bashrc. This makes sure that the PATH does not grow
wildly because of the above when you have an habit of typing xterm &
from another xterm. :-)
PATH=$PATH:/sbin:/usr/sbin:~/bin:/usr/local/bin:/usr/local/sbin
export PATH=$(echo $PATH | awk -F: '
{
for (i = 1; i <= NF; i++)
arr[$i];
}
END {
for (i in arr)
printf "%s:" , i;
printf "\n";
} ')
Binand