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
sort command tonet Shell Programming and Scripting 5 05-11-2008 04:03 AM
How can I use double character delimiter in the cut command AshishK UNIX for Advanced & Expert Users 1 10-07-2007 12:36 PM
Dynamic delimiter in cut command tej.buch Shell Programming and Scripting 3 01-21-2006 03:02 AM
regarding sort command. aman_aj UNIX for Dummies Questions & Answers 2 11-22-2004 08:53 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 03-31-2006
Registered User
 

Join Date: Mar 2006
Posts: 17
sort command delimiter

Hello All,

I'm trying to use the sort command on a text file, the delimiter used in this file is a non-prining character '\027'

I tried to use the command -t option but it's not really working.

sort +n4 -t'\027' filename <<-- this is what I was trying and not working.

Your help is highly appreciated

Thanks,
Nomaad
Reply With Quote
Forum Sponsor
  #2  
Old 03-31-2006
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,326
Just a suggestion (dont know if it will work...), try using tr to translate the \027 to some other character, then sort and then tr the 'other' char back to \027.
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 10:38 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