![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||
|
||||
|
Is there a command that displays a certain path of files in a tree just like the dos command 'tree'?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Maybe something like:
Code:
find . -type d -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g' |
|
#3
|
||||
|
||||
|
those don't look like valid commands.
|
|
#4
|
|||
|
|||
|
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.
|
|
#5
|
||||
|
||||
|
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 |
|
#6
|
|||
|
|||
|
his command worked perfectly fine
that sed command worked perfectly fine
|
|
#7
|
||||
|
||||
|
Thanks. Now that I'm at home I can actually try the command. Sorry, it didn't look like valid arguments before.
|
||||
| Google The UNIX and Linux Forums |