">" means purging the file content, so the 'sed' command isn't necessary.