Uma maneira com sed
:
sed -e 's/[".]//g' <file
Tenho abaixo o conteúdo do arquivo do qual desejo remover as aspas duplas "
e o ponto .
:
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
Estou tentando sed
, mas não consigo encontrar uma maneira de remover pontos também:
# cat pschagKK | sed 's/"/ /g'
Password expiration notice for beems Server.example.com
Password expiration notice for beems Server.example.com
Outra maneira (e menos digitação) é tr
:
tr -d '".' < file
Tags text-processing