問一個shell script的寫法 - Linux

By Delia
at 2011-02-22T12:24
at 2011-02-22T12:24
Table of Contents
各位版友好
小弟想要請教一個寫法
假如我有一個檔案test.dat
內容為
abstract continue for false new switch
assert default if package synchronized
boolean do goto private this
break double implements protected throw
byte else import public throws
case enum instanceof return transient
catch extends int short try
true
char final interface static void
class finally long strictfp volatile
const float native super while null
現在想要把他調整成每一行只有一個word,並且可以依照ASCII值做排列
例如
abstract
assert
boolean
....
...
排列那個我知道可以用sort
只是一行一個word不知道要怎麼寫比較好@@
請問要怎麼寫比較好??
感謝各位版友
--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己
--
小弟想要請教一個寫法
假如我有一個檔案test.dat
內容為
abstract continue for false new switch
assert default if package synchronized
boolean do goto private this
break double implements protected throw
byte else import public throws
case enum instanceof return transient
catch extends int short try
true
char final interface static void
class finally long strictfp volatile
const float native super while null
現在想要把他調整成每一行只有一個word,並且可以依照ASCII值做排列
例如
abstract
assert
boolean
....
...
排列那個我知道可以用sort
只是一行一個word不知道要怎麼寫比較好@@
請問要怎麼寫比較好??
感謝各位版友
--
~宅男的四個徵兆~
∠□ ○ ! * \○/ ★ (○ ?
╦╦└□ " ○□═ □ □>
║║√√ ╦══╦ ∥ |\
一回家就上PTT 每天想正妹 以當好人為樂 忘記正妹虧欠自己
--
Tags:
Linux
All Comments

By Una
at 2011-02-26T04:24
at 2011-02-26T04:24

By Cara
at 2011-02-27T19:23
at 2011-02-27T19:23

By Frederica
at 2011-03-01T06:06
at 2011-03-01T06:06

By Sierra Rose
at 2011-03-03T01:22
at 2011-03-03T01:22

By Ina
at 2011-03-06T13:22
at 2011-03-06T13:22
Related Posts
sed 只使用到match的pattern部份

By Faithe
at 2011-02-22T11:54
at 2011-02-22T11:54
專業的鄉民

By Robert
at 2011-02-21T21:56
at 2011-02-21T21:56
DNS設定檔

By Hazel
at 2011-02-21T20:13
at 2011-02-21T20:13
Cent0S圖形介面亂碼?

By Doris
at 2011-02-21T17:16
at 2011-02-21T17:16
apt-get update問題

By Charlotte
at 2011-02-21T15:56
at 2011-02-21T15:56