The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How can i display the files only? satyakide Shell Programming and Scripting 3 04-10-2008 02:54 AM
Recursively copy only specific files from a directory tree sharpsharkrocks Shell Programming and Scripting 3 01-07-2008 11:16 AM
Read from fileList.txt, copy files from directory tree fxvisions Shell Programming and Scripting 1 10-30-2007 02:17 PM
inconsistent ls command display at the command prompt & running as a cron job rajranibl Linux 5 07-30-2007 05:26 AM
tree command wip_vasikaran UNIX for Dummies Questions & Answers 1 04-10-2007 06:43 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 02-24-2008
Bradj47's Avatar
Registered User
 

Join Date: Feb 2008
Posts: 18
Cool What command can display files in a tree?

Is there a command that displays a certain path of files in a tree just like the dos command 'tree'?
Reply With Quote
Forum Sponsor
  #2  
Old 02-24-2008
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,664
Maybe something like:
Code:
find . -type d -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'
Reply With Quote
  #3  
Old 02-25-2008
Bradj47's Avatar
Registered User
 

Join Date: Feb 2008
Posts: 18
those don't look like valid commands.
Reply With Quote
  #4  
Old 02-25-2008
Registered User
 

Join Date: Oct 2002
Posts: 676
Before dismissing a response out of hand, it's best to at least try the proposed solution. I ran Perderabo's code and got a nice looking tree.
Reply With Quote
  #5  
Old 02-25-2008
robotronic's Avatar
Can I play with madness?
 

Join Date: Apr 2002
Location: Italy
Posts: 370
I confirm that Perderabo's code works perfectly!

And, WOW!!

That command truly impressed me

I've never thought that could be possible displaying a tree with a simple sed command
Reply With Quote
  #6  
Old 02-25-2008
Registered User
 

Join Date: Feb 2008
Posts: 2
his command worked perfectly fine

that sed command worked perfectly fine
Reply With Quote
  #7  
Old 02-25-2008
Bradj47's Avatar
Registered User
 

Join Date: Feb 2008
Posts: 18
Thanks. Now that I'm at home I can actually try the command. Sorry, it didn't look like valid arguments before.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
solaris

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:36 PM.


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