Text Processing – How to Remove Quotes from Text

text processing

I have a file as below.

"ID" "1" "2"
"00000687" 0 1
"00000421" 1 0

I want to make it as below.

00000687 0 1
00000421 1 0

I want to

  1. remove the first line and
  2. remove double quotes from fields on any other lines. 
    FWIW, double quotes appear only in the first column.

I think cut -c would work, but cannot make it. 
What should I do?

Best Answer

tail +tr:

tail -n +2 file | tr -d \"

tail -n+2 prints the file starting from line two to the end. tr -d \" deletes all double quotes.

Related Question