Linux Command Line Replace String In C