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?

Recommended Answers

All 2 Replies

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 :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.