how to


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers how to
# 1  
Old 10-12-2008
how to

how to sort a file with a tab delimiter
eg
bed 234
room 123

sort by price
# 2  
Old 10-12-2008
try this
Code:
sort +1 filename

# 3  
Old 10-12-2008
thank you but i think i wrote the questin wrong
there is a tab space btw bed and the price
# 4  
Old 10-12-2008
then also it should work
# 5  
Old 10-12-2008
i thought to but it did not
# 6  
Old 10-12-2008
then post some lines of your input file as it is..
or try this
Code:
sort  +1 -n filename


Last edited by vidyadhar85; 10-12-2008 at 03:46 PM..
# 7  
Old 10-12-2008
bed 12
sofa 1876
lamp 456

sort by price
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question