Help in sorting and merging lists

Hi everyone, need your help in sorting and merging two numerical lists

Example:

I have one list 1 2 3 4 5 7 and the other 4 6 8, then the final output should be 1 2 3 4 5 6 7 8

Requesting your kind help in this

Regards,
RB :slight_smile:

Assume the two lists are in files: list1, list2

sort -n -u   list1 list2  > newfile