Talk:Remove duplicate elements: Difference between revisions

Content added Content deleted
(→‎APL example: PHP problem.)
Line 8: Line 8:
If order matters, then there are some solutions here that will not suffice. If it doesn't matter, it should be made explicit.
If order matters, then there are some solutions here that will not suffice. If it doesn't matter, it should be made explicit.
:I'm gonna guess that order shouldn't matter. The focus of the task is uniqueness. I didn't make the task though so I don't know, but my vote is for it not mattering. --[[User:Mwn3d|Mwn3d]] 18:30, 13 July 2009 (UTC)
:I'm gonna guess that order shouldn't matter. The focus of the task is uniqueness. I didn't make the task though so I don't know, but my vote is for it not mattering. --[[User:Mwn3d|Mwn3d]] 18:30, 13 July 2009 (UTC)

== Bash ==

Does anybody know how to do it with Bash (or any other shell)?
for example, if I start with "-I/usr/include -I/usr/include -I/usr/other" I would like to get "-I/usr/include -I/usr/other"