0
我正在尋找一個sed
腳本,將改變如何使用sed刪除空白的未加引號的行?
;; DONE Badge
;; :PROPERTIES:
;; :ID: D0C151F1-384E-4995-B091-1EC1FE265572
;; :END:
;; [[http://api.stackexchange.com/docs/types/badge][Official documentation]]
;; [[file:~/lunch/github/vermiculus/stack-api/stack-api.org::*Badge][Badge:1]]
(defstruct stack-api/badge
"This type represents a badge on a Stack Exchange `stack-api/site'.
Some badges, like Autobiographer, are held in common across all
Stack Exchange sites. Others, like most tag badges, vary on a
site by site basis.
Remember that ids are never guaranteed to be the same between
sites, even if a badge exists on both sites."
(award-count nil :type integer)
(badge-id nil :type integer) ; refers to a badge
(badge-type nil :type (memq 'named
'tag-based))
(description nil :type string) ; unchanged in unsafe filters
(link nil :type string) ; unchanged in unsafe filters
(name nil :type string)
(rank nil :type (memq 'gold
'silver
'bronze)
(user nil :type shallow-user))
;; Badge:1 ends here
到
;; DONE Badge
;; :PROPERTIES:
;; :ID: D0C151F1-384E-4995-B091-1EC1FE265572
;; :END:
;; [[http://api.stackexchange.com/docs/types/badge][Official documentation]]
;; [[file:~/lunch/github/vermiculus/stack-api/stack-api.org::*Badge][Badge:1]]
(defstruct stack-api/badge
"This type represents a badge on a Stack Exchange `stack-api/site'.
Some badges, like Autobiographer, are held in common across all
Stack Exchange sites. Others, like most tag badges, vary on a
site by site basis.
Remember that ids are never guaranteed to be the same between
sites, even if a badge exists on both sites."
(award-count nil :type integer)
(badge-id nil :type integer) ; refers to a badge
(badge-type nil :type (memq 'named
'tag-based))
(description nil :type string) ; unchanged in unsafe filters
(link nil :type string) ; unchanged in unsafe filters
(name nil :type string)
(rank nil :type (memq 'gold
'silver
'bronze)
(user nil :type shallow-user))
;; Badge:1 ends here
積分爲在同去消除所有的評論,但我可以用一個管道。我主要不知道如何測試掃描儀是否在一個字符串內。