我在下面的文件内容中要删除双引号"
和点.
:
Password expiration notice for beems Server
# cat pschagKK
Password expiration notice for "beems" Server.example.com
Password expiration notice for "beems" Server.example.com
Password expiration notice for "beems" Server.example.com
Password expiration notice for "goog_dev" Server.example.com
Password expiration notice for "goog_integ" Server.example.com
Password expiration notice for "noodle" Server.example.com
Password expiration notice for "noodle" Server.example.com
Password expiration notice for "pacct" Server.example.com
Password expiration notice for "pacct" Server.example.com
Password expiration notice for "pacct" Server.example.com
Password expiration notice for "pacct" Server.example.com
Password expiration notice for "pacct" Server.example.com
我正在尝试,sed
但也找不到删除点的方法:
# cat pschagKK | sed 's/"/ /g'
Password expiration notice for beems Server.example.com
Password expiration notice for beems Server.example.com
一种方式sed
:
sed -e 's/[".]//g' <file
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句