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 and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sort text file naamas03 Shell Programming and Scripting 4 08-04-2009 09:51 AM
egrep not giving desired results igandu Shell Programming and Scripting 3 11-14-2007 04:43 AM
Perl Sort on Text File eltinator Shell Programming and Scripting 6 08-07-2007 03:20 PM
Need a Help with sort a text file with some fields alexcol Shell Programming and Scripting 3 02-19-2007 03:13 AM
How to sort find results groundlevel UNIX for Dummies Questions & Answers 8 11-09-2005 02:36 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #6 (permalink)  
Old 4 Weeks Ago
JakeKatz JakeKatz is offline
Registered User
  
 

Join Date: Nov 2009
Location: Ottawa, ON. Canada
Posts: 3
Excellent!

That did exactly what I needed.

And I just remember mom saying "Never bite the hand that feeds you"

Thanks for your help!

J.

Quote:
Originally Posted by Scrutinizer View Post
Hi Jake, that is very gentle since you really wrote that quite clearly . Anyway just for completeness then:

Code:
sed 's|.*\(/[^/]\+\)\(/[^/]\+\)\(/[^/]\+\)|\3\2\1 &|' dirlist.txt| sort -nt'/'|sed 's|[^ ]* ||'
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0