'Replace single quotes to double and vice versa in file by single command line

Are there ways to do it more clean/simple than this:

$ tr '"' '?' < f.txt > f1.txt && tr "'" '"' < f1.txt > f.txt \
    && tr '?' "'" < f.txt > f1.txt && rm f.txt && mv f1.txt f.txt 


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source