Write a shell script to concatenate lists together and outputthe resulting list. Do not include any argument that is a sub-listof the entire list. (The script will clean the list of anyredundant items.) You must preserve the original order of the list.Remember to account for the following situations:a : at the beginning of the list is the same as a . at thebeginning of the list (:/bin is the same a .:/bin)a :: any where in the list is the same as :.: (/bin::/etc is thesame as (/bin:.:/etc)a : at the end of the list is the same a :. ( /bin: is the same as/bin:. )Project using temporary files will not be graded.The input to the script will be color or space separated lists andthe output will be a colon separated list with the original orderpreserved and all redundant items removed.