Results 1 to 2 of 2
I am trying to find the permissions of the directories in the $PATH variable.
I am trying to use the following:
ls -ld `echo $PATH | sed "s/:/ /g"' but ...
- 08-31-2010 #1Just Joined!
- Join Date
- Oct 2006
- Posts
- 4
Help With Root Search Path
I am trying to find the permissions of the directories in the $PATH variable.
I am trying to use the following:
ls -ld `echo $PATH | sed "s/:/ /g"' but I get the following:
ls: echo $PATH | sed "s/:/ /g": No such file or directory
Ideas?
Thanks,
Ray
PS: CentOS 5.5
- 09-02-2010 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
You need to terminate the `echo...` part with a back-quote, not a forward quote. IE:
Code:ls -ld `echo $PATH | sed "s/:/ /g"`
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote