Function to remove a directory from your PATH

pathrm() { PATH=`echo $PATH | sed -e "s=^${1}:==;s=:${1}$==;s=:${1}:=:="`; }
Function to remove a specified path from your PATH environment variable.
Sample Output
tardis ~ $ echo $PATH
tardis ~ $ pathrm /usr/local/bin
tardis ~ $ echo $PATH
tardis ~ $ pathrm ~/bin

By: wam
2009-02-05 16:25:12

1 Alternatives + Submit Alt

What Others Think

you are soo inspiring! thanks for this! guitar lessons
aegyjingoo · 88 weeks and 5 days ago
This is good to see that assignment writing help is available for the students who want to complete the writing work in good way.I have checked about the click reference site which provides the good option to help out the students to complete the work in good way.
Falk1993 · 59 weeks ago
Superior Place, My organization is a great believer during ad opinions regarding online websites that will let the webpage novelists recognize that they’ve put in an item worthwhile that will the online market place! disposable face mask
KayGasaway · 55 weeks and 5 days ago
I merely imagined it usually is a perception to write could possibly help anybody ended up being experiencing difficulity looking into nevertheless We are somewhat doubtful only are permitted to placed labels along with details in below. merchant services sales
jackson2321 · 55 weeks and 5 days ago
Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! merchant services rep salary
KayGasaway · 55 weeks and 1 day ago
The doctor reminded: Cialis is not a "universal" health product . ??? . "In recent years, people have lost confidence in some health products and tonics due to excessive exaggeration of curative effects and false advertisements. As a traditional Chinese medicine supplement, Cialis has quietly entered the ranks of people's "health products". Many men regard Cialis as a good product for protecting the kidney and strengthening yang. There are also middle-aged and elderly people diagnosed as kidney deficiency as long as their waists are sore and leg pains. They take Liuwei Dihuang Pills for a long time to "strengthen their bodies." Some people use it as a hypoglycemic agent to prevent and treat diabetes. Many parents take Liuwei Dihuang Pills as a miracle medicine to treat children's "shortness" and "slow growth". It is not difficult to see that people have entered the misunderstanding of treating Cialis as a "health product". ??Men's "back pain" is not all kidney deficiency ??First of all, it should be clear that not all male "back pain" is caused by kidney deficiency, but may also be caused by lumbar disc herniation, lumbar muscle strain, kidney stones and other diseases. It is recommended that patients with unexplained low back pain should go to the hospital for treatment in time. In addition, as the saying goes, "ten men and nine kidneys are insufficiency" may not be the case. Even with kidney deficiency, there is a difference between yin and yang. The function of Cialis is mainly to nourish the liver and kidney. Clinically, it mainly treats the weakness of waist and knees, dizziness, deafness and tinnitus, night sweats and nocturnal emission caused by liver and kidney yin deficiency; or dry mouth and throat. ??Cialis also has side effects ??Many middle-aged men nowadays are lazy in exercising every day, are over-nutritioned, and are overweight. Traditional Chinese medicine believes that fat people are more damp, and wetness leads to sleepy spleen. Therefore, people who are obese are not allowed to take Cialis "tonic" casually. Therefore, not all men are suitable for taking Liuwei Dihuang Pills, and they cannot be self-administered. They must decide the medication and dosage according to different conditions under the guidance of doctors. ??After suffering from diabetes, you must find a specialist medical treatment plan. Do not take Liuwei Dihuang Pills for long-term self-treatment to avoid delaying the condition. Inadvertently taking Liuwei Dihuang Pills for children will affect the normal development of the children and even cause symptoms such as rapid growth and precocious puberty. Liuwei Dihuang Pills also have side effects, because the medicine in the prescription is mainly moisturizing, after taking it for a long time, it will easily stagnate the spleen and hinder the stomach, lose the spleen and stomach and affect appetite; the dampness of the spleen can easily cause spleen deficiency and diarrhea. People with better physique or heavy dampness and heat will get severely angry after taking it, and will increase internal heat and even affect digestive function. ??Three types of people should not eat Cialis ??1. Healthy people. ??2. People with obvious yang deficiency (including kidney yang deficiency and spleen yang deficiency): people with kidney yang deficiency have a pale complexion, weak physique, and prefer summer but not winter. Such people are not suitable for taking Liuwei Dihuang Pills. Many patients with erectile dysfunction caused by deficiency of kidney yang, even taking Liuwei Dihuang Pills blindly, will make the symptoms worse. They should choose drugs to treat kidney-yang deficiency, such as Jinkui Shenqi Pills. ??3. People with deficiency of kidney yin but poor spleen and stomach function: Liuwei Dihuang Pill is a medicine that tends to invigorate yin. There are more yin and soft medicines in the formula, which will hinder digestion. Middle-aged and elderly people generally do not have strong spleen and stomach functions, so they should be more cautious when taking them. Intermittent eating has little effect, and it is not advisable to take it continuously for a long time." . ???? . c
KayGasaway · 53 weeks and 6 days ago
This is my first time visit to your blog and I am very interested in the articles that you serve. Provide enough knowledge for me. Thank you for sharing useful and don't forget, keep sharing useful info: ???????????
KayGasaway · 49 weeks and 4 days ago
When we receive a verification request from members, we will first investigate all of the past operation history to make it clear whether the site is a scam site. Even if the history is not properly verified, a company that has changed or renewed domains for a long time may not of course be filtered out. ????
KayGasaway · 48 weeks ago
Phyris is a dynamic cosmeceutical skincare brand with a scientific approach and groundbreaking formulations; it guarantees beauty and skincare products that stand for optimized nature. Result-driven skincare and science deliver optimal results in the present and distant future. Looking for ?Best Phyris facial Singapore ?Perfect Beauty Bedok is official Phyris facials and skincare products We are located conveniently at the heart of Bedok Central behind Bedok Mall.">Best Phyris facial Singapore
KayGasaway · 45 weeks and 6 days ago
Intraharyana is a portal launched by the Haryana Government for Government employees to serve various financial functions. The Haryana Govt has launched an online portal named IntraHaryana. The portal is featured with all sorts of employee-based activities in a few. IntraHaryana: Various types of facilities are available for the employees on Intra Haryana portal. Like, ESalary Haryana, Property return. Salary of any employee under you pending upto Feb 2020 due to any reason may be generated directly from esalary/ebilling portal as you made intraharyana
KayGasaway · 44 weeks ago
seofox · 38 weeks and 3 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this? is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands

Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.


Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: