1
I got the file, text.txt. In this file I have written:
"test"
"okay"
I want to remove the "
part of this file, how'd I do this?
1
I got the file, text.txt. In this file I have written:
"test"
"okay"
I want to remove the "
part of this file, how'd I do this?
1
sed, awk, others, many could do this. tr one:
tr -d '"' < file
The -d option is to delete things. And tr doesn't just read files, so use < to feed file content to it. It's same as:
cat file | tr -d '"'
1I used tr before, but many people have not. Could you add some more details as to why it works? – Hennes – 2016-01-29T13:03:04.143
Updated. @Hennes – Tiw – 2016-01-29T14:51:06.237
1Not quite clear what you're asking. Is this what you want:
sed 's/"//g' file
?? – glenn jackman – 2016-01-23T23:51:53.500@glennjackman this is the probable answer, as such it should be posted as an answer. – Alex – 2016-01-28T11:26:47.253