#sed
In command:

sed -e "s/\r//g" input-file


Using the -e switch in the sed command is not strictly necessary in this context. The -e option is used to specify a script to be executed, but if you're providing a single expression, sed can interpret it without the -e.
You can simplify it to:

sed "s/\r//g" input-file


This will work just as effectively. The -e flag is more relevant when you want to include multiple expressions in one command, for example:

sed -e "s/\r//g" -e "s/foo/bar/g" input-file
 
 
Back to Top