Roman
·
Aug 15, 2011
·
Viewed 11.3k times
·
Source
Need get part of path, for example
"/home/server/folder1/rev.1111/bin"
Needed part is "rev.1111"
I`ll try to parse by PWD & grep commands, but I am newbie on linux and I cant do this.
I'm trying to add a directory to my path so it will always be in my Linux path. I've tried:
export PATH=$PATH:/path/to/dir
This works, however each time I exit the terminal and start a new terminal …
What is the proper way to modify environment variables like PATH in OS X?
I've looked on Google a little bit and found three different files to edit:
/etc/paths
~/.profile
~/.tcshrc
I don't even have some of these files, …
I am trying to edit an entry to PATH, as I did something wrong.
I am using Mac OS X 10.10.3
I have tried:
> touch ~/.bash_profile; open ~/.bash_profile
But the file editor opens with nothing inside.
My problem:
…