
Eu tenho uma lista em que os dados estão neste formato
"127.0.0.1,abc.xyz.com"
Quero chegar apenas abc.xyz.com
sem o endereço IP e qoutes duplos. Como pode ser feito?
Responder1
Responder2
Sponge
permite que você construa tubos que leiam e gravem no mesmo arquivo:
$ tr -d \" < file | cut -d , -f2 | ifne sponge file