Re: sed vs gnu sed

看板FB_questions作者時間14年前 (2011/11/10 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串4/6 (看更多)
Vincent Hoffman <vince@unsane.co.uk> wrote: > bsd sed (correctly according to SUS at least, I believe[1]) > appends a newline when writing to standard out, gnu sed doesnt. The wonderful thing about standards is that there are so many to choose from -- Tanenbaum > is there any easy way to make our sed do the same as gnu sed here? As long as it is OK to remove _all_ newlines -- which seems to be the case here -- you could pipe the output through tr -d '\012' _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
文章代碼(AID): #1Eko9FGF (FB_questions)
文章代碼(AID): #1Eko9FGF (FB_questions)