什麼情況文字會以 null 作為換行符? - Linux

By Isla
at 2016-03-14T00:03
at 2016-03-14T00:03
Table of Contents
在 sed 的 man page 中看到選項 -z ,
以 null 作為輸入資料的換行符。
當我希望 sed 不要一次只處理一行時,
會用這個選項。
但這應該不是它本來的目的。
我在其它命令也有看到類似的選項;
(像 xargs 的 -0 選項。)
是什麼時候文字會以 null 作為換行符?
C 語言的字串是以 null 結尾,
我猜這些選項可能是要和 C 語言配合。
但感覺有點小題大作……。
請教各位知道這個選項的意義嗎?
--
因為她不知道,唯一值得她流淚的人,絕不會讓她流淚。
--
Tags:
Linux
All Comments

By Dorothy
at 2016-03-18T13:50
at 2016-03-18T13:50

By Todd Johnson
at 2016-03-20T08:32
at 2016-03-20T08:32

By Freda
at 2016-03-20T23:11
at 2016-03-20T23:11

By Hazel
at 2016-03-25T18:07
at 2016-03-25T18:07

By Queena
at 2016-03-28T10:52
at 2016-03-28T10:52

By Rebecca
at 2016-03-29T22:04
at 2016-03-29T22:04

By Damian
at 2016-04-03T21:15
at 2016-04-03T21:15

By Andy
at 2016-04-05T11:53
at 2016-04-05T11:53

By Xanthe
at 2016-04-08T12:13
at 2016-04-08T12:13

By Michael
at 2016-04-11T13:41
at 2016-04-11T13:41

By Vanessa
at 2016-04-15T10:09
at 2016-04-15T10:09

By Jack
at 2016-04-15T12:29
at 2016-04-15T12:29

By Doris
at 2016-04-17T20:34
at 2016-04-17T20:34

By Liam
at 2016-04-17T23:26
at 2016-04-17T23:26

By Zora
at 2016-04-21T20:13
at 2016-04-21T20:13
Related Posts
請問刪除檔案所需要的權限

By Callum
at 2016-03-12T11:45
at 2016-03-12T11:45
Asus n10 nano 有辦法在ubuntu14.04.4運作正常嗎?

By Iris
at 2016-03-12T10:32
at 2016-03-12T10:32
開機後自動執行script

By Ingrid
at 2016-03-11T22:24
at 2016-03-11T22:24
指令顯示system monitor resources問題

By Jessica
at 2016-03-11T16:56
at 2016-03-11T16:56
筆電 雙系統Windows 10+Ubuntu 14.04成功

By Iris
at 2016-03-11T16:37
at 2016-03-11T16:37