sort 排序問題 - Linux

By Robert
at 2017-01-10T23:58
at 2017-01-10T23:58
Table of Contents
不好意思
想請問大家
如果資料是
REG_0_
REG_1_
REG_10_
REG_2_
希望他排成
REG_0_
REG_1_
REG_2_
REG_10_
可以這樣寫
sort -t '_' -k 2 -n
但如果變成
REG_0_
REG_1_
REG_10_
REG_2_
REG_REG_0_
REG_REG_1_
REG_REG_10_
REG_REG_2_
有辦法能排成這樣嗎?
REG_0_
REG_1_
REG_2_
REG_10_
REG_REG_0_
REG_REG_1_
REG_REG_2_
REG_REG_10_
想了好久想不出來@@
希望有高手能指點一下
謝謝
--
Tags:
Linux
All Comments

By Rebecca
at 2017-01-12T21:30
at 2017-01-12T21:30

By Lauren
at 2017-01-15T20:08
at 2017-01-15T20:08

By Hardy
at 2017-01-19T14:29
at 2017-01-19T14:29

By Megan
at 2017-01-24T05:48
at 2017-01-24T05:48

By Rae
at 2017-01-25T23:08
at 2017-01-25T23:08

By Mia
at 2017-01-29T13:13
at 2017-01-29T13:13

By Hedwig
at 2017-02-02T19:13
at 2017-02-02T19:13

By Queena
at 2017-02-07T00:11
at 2017-02-07T00:11

By Linda
at 2017-02-10T14:53
at 2017-02-10T14:53

By Ingrid
at 2017-02-11T01:39
at 2017-02-11T01:39

By Ophelia
at 2017-02-15T22:02
at 2017-02-15T22:02

By Ina
at 2017-02-18T13:39
at 2017-02-18T13:39

By Edwina
at 2017-02-21T10:42
at 2017-02-21T10:42

By Joe
at 2017-02-23T00:06
at 2017-02-23T00:06

By Genevieve
at 2017-02-24T19:10
at 2017-02-24T19:10

By Susan
at 2017-02-25T00:31
at 2017-02-25T00:31

By Noah
at 2017-02-25T08:38
at 2017-02-25T08:38

By Olive
at 2017-02-25T14:18
at 2017-02-25T14:18

By Yedda
at 2017-02-25T19:03
at 2017-02-25T19:03

By Blanche
at 2017-02-28T07:24
at 2017-02-28T07:24

By Kumar
at 2017-03-04T01:50
at 2017-03-04T01:50

By Gilbert
at 2017-03-04T18:00
at 2017-03-04T18:00

By Dora
at 2017-03-05T05:54
at 2017-03-05T05:54

By Annie
at 2017-03-07T22:40
at 2017-03-07T22:40

By Ida
at 2017-03-12T20:11
at 2017-03-12T20:11

By James
at 2017-03-13T16:13
at 2017-03-13T16:13
Related Posts
MRIcro 沒辦法跑

By Michael
at 2017-01-10T23:24
at 2017-01-10T23:24
LPIC LV1&LV2 和 RHCE

By Elizabeth
at 2017-01-08T13:02
at 2017-01-08T13:02
playonlinux gdiplus

By Tom
at 2017-01-07T23:55
at 2017-01-07T23:55
PATH修改過後改不回來

By Dora
at 2017-01-06T16:39
at 2017-01-06T16:39
VirtualBox裝Centos7 沒辦法上網

By Mary
at 2017-01-05T20:38
at 2017-01-05T20:38