Posted: March 7th, 2014

Write a shell script to concatenate lists together, and output the resulting list

Write a shell script to concatenate lists together, and output the resulting list. Do not include any argument that is a sub-list of the entire list. (The script will clean the list of any redundant items.) You must preserve the original order of the list. Remember to account for the following situations:

Need a Professional Writer to Work on this Paper and Give you an A+ 100 % Original Paper? CLICK HERE TO GET THIS PAPER WRITTEN

a : at the beginning of the list is the same as a . at the beginning of the “list” (:/bin is the same a .:/bin) a :: any where in the list is the same as :.: (/bin::/etc is the same as (/bin:.:/etc) a : at the end of the list is the same a :. ( /bin: is the same as /bin:. ) Project usings temporary files will not be graded. The input to the script will be color or space separated lists and the output will be a colon separated list with the orignal order preserved and all redunant items removed.

Need a Professional Writer to Work on this Paper and Give you an A+ 100 % Original Paper? CLICK HERE TO GET THIS PAPER WRITTEN

USAGE: clean_list list …. Where list a a colon or whitespace separated list.

Examples: prompt> clean_list a a:b a:b:c :x: y:z a:b:c:.:x:y:z

prompt>clean_list /bin:/usr/bin:/usr/openwin/bin /usr/bin:/usr/etc:/etc: /usr/bin/X11 .:/bin /bin:/usr/bin:/usr/openwin/bin:/usr/etc:/etc:.:/usr/bin/X11

prompt>clean_list apple:orange:apple pear orange peach apple:orange:pear:peach REMEMBER TO HANDLE THE SPECIAL CASES OF LEADING :, A ::, AND A TRAILING :

Need a Professional Writer to Work on this Paper and Give you an A+ 100 % Original Paper? CLICK HERE TO GET THIS PAPER WRITTEN

Expert paper writers are just a few clicks away

Place an order in 3 easy steps. Takes less than 5 mins.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Live Chat+1-631-333-0101EmailWhatsApp