I need to execute the dos2unix
command in a variable.
With files we just do dos2unix myfile.txt
.
How can I do that with a variable?
For example:
variable="bla\r"
dos2unix $variable
Sugestions using other commands are also welcome.
PS.: I cannot perform a dos2unix on the file from where I'm reading the text.