The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
PATH on solaris 8 (bash) recklessop Shell Programming and Scripting 1 03-27-2008 07:56 PM
Find a file in sub-directories.. o/p just the path pranavagarwal Shell Programming and Scripting 3 11-22-2007 10:50 PM
Display only subdirectories from given directories HAA Shell Programming and Scripting 8 04-25-2007 02:36 AM
How to display directories recursively? jwriter UNIX for Dummies Questions & Answers 5 04-23-2007 12:37 PM
how can i display the list of directories(only) indianguru UNIX for Dummies Questions & Answers 3 07-24-2001 11:02 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-09-2005
Registered User
 

Join Date: Nov 2005
Posts: 3
Bash Script to display directories in Path?

Hello there,

As a newbie:

The directories in PATH can be hard to distinguish when printed out as
one line with colon .Please, can i have a sample script to display
them,one to a line.

Thank you.
Reply With Quote
Forum Sponsor
  #2  
Old 11-09-2005
vgersh99's Avatar
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 3,016
Code:
echo "$PATH" | tr ':' '\n'
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 12:53 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0