答: sed -i 's/$/yes/' jello.txt
这句话的意思就是在jello.txt文件的所有行尾都添加相同的内容yes,如jello.txt原来的内容为:
no
jello
hello
yellow
那么经过这个命令处理之后就变成了
noyes
jelloyes
helloyes
yellowyes
答: sed -i 's/$/yes/' jello.txt
这句话的意思就是在jello.txt文件的所有行尾都添加相同的内容yes,如jello.txt原来的内容为:
no
jello
hello
yellow
那么经过这个命令处理之后就变成了
noyes
jelloyes
helloyes
yellowyes
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。