Skip to main content

I am trying to write a bash shell function that will allow me to remove duplicate copies of directories from my pathPATH environment variable.

I was told that it is possible to achieve this with a one line command using the awk command, but I cannot figure out how to do it. Anybody know how? I am new to linux so please don't be too technical.

I am trying to write a bash shell function that will allow me to remove duplicate copies of directories from my path environment.

I was told that it is possible to achieve this with a one line command using the awk command, but I cannot figure out how to do it. Anybody know how? I am new to linux so please don't be too technical.

I am trying to write a bash shell function that will allow me to remove duplicate copies of directories from my PATH environment variable.

I was told that it is possible to achieve this with a one line command using the awk command, but I cannot figure out how to do it. Anybody know how?

edited tags
Link
Gilles 'SO- stop being evil'
  • 866.1k
  • 205
  • 1.8k
  • 2.3k
Tweeted twitter.com/#!/StackUnix/status/213217869452951552
Descriptive title, tags & formatting
Source Link
jasonwryan
  • 74.9k
  • 35
  • 204
  • 230

Linux Remove duplicate $PATH entries with awk command

I am trying to write a bash shell function that will allow me to remove duplicate copies of directories from my path environment. 

I was told that it is possible to achieve this with a one line command using the awkawk command, but iI cannot figure out how to do it.Anybody Anybody know how? I am new to linux so please don't be too technical.

Linux awk command

I am trying to write a bash shell function that will allow me to remove duplicate copies of directories from my path environment. I was told that it is possible to achieve this with a one line command using the awk command, but i cannot figure out how to do it.Anybody know how? I am new to linux so please don't be too technical.

Remove duplicate $PATH entries with awk command

I am trying to write a bash shell function that will allow me to remove duplicate copies of directories from my path environment. 

I was told that it is possible to achieve this with a one line command using the awk command, but I cannot figure out how to do it. Anybody know how? I am new to linux so please don't be too technical.

Source Link
Loading