i have 2 files,

one file created on Windows and another was made on Ubuntu,

i want to use this command:

comm -12 file1 file2

how do i do that?

how do i do that?

I'd say «just do it!» ;)

both systems do not end lines the same way.
you'll probably have to remove carriage return from windows files by using fromdos.
it's possible to do it with tr, or sed too.

it works
thanks Watael

I'd say «just do it!» ;)

yep :)