Can be fed a file with list of comma-separated values, and will output unique items (ie. remove repetitive ones).
|
|
4 năm trước cách đây | |
|---|---|---|
| README.md | 4 năm trước cách đây | |
| get-unique-items.php | 4 năm trước cách đây |
This script can be fed a file with list of comma-separated values, and will output unique items (ie. remove repetitive ones).
Input file must be properly formatted, no extraneous lines or unwanted whitespace.
values.txt
2016,2018,2018,2019,2018,2018,2018,2019,2016,2017,2014,2017,2019,2018,2014,2014,2017,2016,2014,2018,2017,2017,2014,2019,2015,2019,2019,2013,2013,2016,2019,2017,2019,2014,2017,2019
$> php get-unique-items.php values.txt
Results
=========================
2016
2018
2019
2017
2014
2015
2013