I am writing a script in batch file for Windows. I want to replace double quotes with space in a file.
Input file File1.txt
contains:
"05-09-2017", "07:00:14"
"05-09-2017", "07:00:14"
"05-09-2017", "07:00:14"
"05-09-2017", "07:00:14"
"05-09-2017", "07:00:14"
I have tried the following:
tr.exe "\"" " " < "File1.txt" > "File2.txt"
The above line gives me an error like
tr.exe: too many arguments
And I have also tried:
sed.exe "s/\"/ /g" "File1.txt" > "File2.txt"
The above gives me an error like
sed.exe: can't read >: Invalid argument
I need output file like this:
05-09-2017 , 07:00:14
05-09-2017 , 07:00:14
05-09-2017 , 07:00:14
05-09-2017 , 07:00:14
05-09-2017 , 07:00:14
Can you please look into this.