The UNIX and Linux Forums
Forum Home
Linux and Unix Man Pages
Search Forums
Search Community Posts
Today's Posts
Quick Links
Man Pages
RedHat Commands
OpenSolaris Commands
Linux Commands
SunOS Commands
FreeBSD Commands
All UNIX Man Pages
All Linux Man Pages
Full Man Repository
Login or Register to Ask a Question and Join Our Community
Search Forums
Show Threads .
Show Posts
Tag Search
Advanced Search
Quick Links
Contact Us
Forum Rules
Today's Posts
FAQ
Pictures & Albums
All Albums
Miscellaneous
What is My IP
Whois
Mark Forums Read
UNIX for Dummies Questions & Answers
how to
Tags
beginners
Thread Tools
Search this Thread
Top Forums
UNIX for Dummies Questions & Answers
how to
#
1
10-12-2008
kerryann09
Registered User
17,
0
Join Date: Sep 2008
Last Activity: 20 October 2008, 10:54 PM EDT
Posts: 17
Thanks Given: 0
Thanked 0 Times in 0 Posts
how to
how to sort a file with a
tab delimiter
eg
bed 234
room 123
sort by price
kerryann09
View Public Profile for kerryann09
Find all posts by kerryann09
#
2
10-12-2008
vidyadhar85
Registered User
2,050,
105
Join Date: Jun 2008
Last Activity: 9 June 2020, 12:25 AM EDT
Location: INDIA, Bangalore
Posts: 2,050
Thanks Given: 16
Thanked 105 Times in 102 Posts
try this
Code
:
sort +1 filename
vidyadhar85
View Public Profile for vidyadhar85
Find all posts by vidyadhar85
#
3
10-12-2008
kerryann09
Registered User
17,
0
Join Date: Sep 2008
Last Activity: 20 October 2008, 10:54 PM EDT
Posts: 17
Thanks Given: 0
Thanked 0 Times in 0 Posts
thank you but i think i wrote the questin wrong
there is a tab space btw bed and the price
kerryann09
View Public Profile for kerryann09
Find all posts by kerryann09
#
4
10-12-2008
vidyadhar85
Registered User
2,050,
105
Join Date: Jun 2008
Last Activity: 9 June 2020, 12:25 AM EDT
Location: INDIA, Bangalore
Posts: 2,050
Thanks Given: 16
Thanked 105 Times in 102 Posts
then also it should work
vidyadhar85
View Public Profile for vidyadhar85
Find all posts by vidyadhar85
#
5
10-12-2008
kerryann09
Registered User
17,
0
Join Date: Sep 2008
Last Activity: 20 October 2008, 10:54 PM EDT
Posts: 17
Thanks Given: 0
Thanked 0 Times in 0 Posts
i thought to but it did not
kerryann09
View Public Profile for kerryann09
Find all posts by kerryann09
#
6
10-12-2008
vidyadhar85
Registered User
2,050,
105
Join Date: Jun 2008
Last Activity: 9 June 2020, 12:25 AM EDT
Location: INDIA, Bangalore
Posts: 2,050
Thanks Given: 16
Thanked 105 Times in 102 Posts
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
..
vidyadhar85
View Public Profile for vidyadhar85
Find all posts by vidyadhar85
#
7
10-12-2008
kerryann09
Registered User
17,
0
Join Date: Sep 2008
Last Activity: 20 October 2008, 10:54 PM EDT
Posts: 17
Thanks Given: 0
Thanked 0 Times in 0 Posts
bed 12
sofa 1876
lamp 456
sort by price
kerryann09
View Public Profile for kerryann09
Find all posts by kerryann09
Page 1 of 3
1
2
3
>
Login or Register to Ask a Question
Previous Thread
|
Next Thread
Login or Register to Ask a Question
Member Badges and Information Modal
×