bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linux Sed Bug


From: 王森
Subject: Linux Sed Bug
Date: Fri, 26 Oct 2012 20:33:36 +0800 (CST)

Hi

### tmp.txt ###
address@hidden learn_sed]# cat tmp.txt
hello world
I'am in china
address@hidden learn_sed]#

address@hidden learn_sed]# sed --version
GNU sed version 4.2.1

address@hidden learn_sed]# sed 's/$/ End/' tmp.txt
hello world End
I'am in china End
address@hidden learn_sed]#
address@hidden learn_sed]#
address@hidden learn_sed]# sed "s/\'/ End/" tmp.txt
hello world End
I'am in china End
address@hidden learn_sed]#

### My Question
I want to know the reason.  \' be equal to Line End ??
If possible , tell me why ?   thanks  


reply via email to

[Prev in Thread] Current Thread [Next in Thread]