如何計算字串中空白的數目? - Linux

By Franklin
at 2012-08-19T05:35
at 2012-08-19T05:35
Table of Contents
請問在 shell script 中,
如何計算字串中空白的數目?
例如
"a bc d e" 應該有四個
" abc d " 應該有五個
--
如何計算字串中空白的數目?
例如
"a bc d e" 應該有四個
" abc d " 應該有五個
--
Tags:
Linux
All Comments

By Odelette
at 2012-08-19T20:22
at 2012-08-19T20:22

By Edwina
at 2012-08-21T06:25
at 2012-08-21T06:25

By Gary
at 2012-08-26T01:15
at 2012-08-26T01:15

By Gary
at 2012-08-30T09:04
at 2012-08-30T09:04

By Connor
at 2012-09-02T23:27
at 2012-09-02T23:27

By Kumar
at 2012-09-06T03:12
at 2012-09-06T03:12

By Oscar
at 2012-09-09T02:40
at 2012-09-09T02:40

By Olive
at 2012-09-12T14:48
at 2012-09-12T14:48

By Catherine
at 2012-09-16T11:44
at 2012-09-16T11:44

By Genevieve
at 2012-09-19T02:48
at 2012-09-19T02:48

By Olga
at 2012-09-23T14:35
at 2012-09-23T14:35
Related Posts
請問fdisk有辦法更改分割區編號嗎?

By Audriana
at 2012-08-18T20:05
at 2012-08-18T20:05
linux driver 編譯安裝問題

By Quanna
at 2012-08-18T14:17
at 2012-08-18T14:17
備份換硬碟的問題…

By Brianna
at 2012-08-18T09:47
at 2012-08-18T09:47
有關安裝問題

By Charlotte
at 2012-08-17T22:48
at 2012-08-17T22:48
Mail Server該如何移機才能降低影響

By Mia
at 2012-08-17T22:36
at 2012-08-17T22:36