I have a file which contain many lines see below.
"/var/www/abc>"
I want to remove Both of these values
"" and >
I have a file which contain many lines see below.
"/var/www/abc>"
I want to remove Both of these values
"" and >
echo '"/var/www/abc>"'| tr -d '">'
/var/www/abc
echo '"/var/www/abc>"' | tr -d "\"|>"
oops - someone was quicker
Thx
But i did a typo mistake file contain these line,and many more but some what different from each other.
"/var/www/abc">
"/var/www/xyz">
So i only need sed to do the job if possible.
Why not use tr? You can use sed, right, but why not tr?
root@isau02:/data/tmp/testfeld> cat infile
"/some/path/whatever/weekend">
"/var/www/abc">
"/var/www/xyz">
"/is/close/noting/can/stop/it">
"/really">
root@isau02:/data/tmp/testfeld> tr -d '">' < infile
/some/path/whatever/weekend
/var/www/abc
/var/www/xyz
/is/close/noting/can/stop/it
/really
root@isau02:/data/tmp/testfeld> sed 's/[">]//g' infile
/some/path/whatever/weekend
/var/www/abc
/var/www/xyz
/is/close/noting/can/stop/it
/really
No problem with tr but i like sed