Removing duplicate lines from a text file
3 ビュー (過去 30 日間)
古いコメントを表示
I have a text file (attached) that has duplicate lines in it. How would I remove those lines?
0 件のコメント
採用された回答
Walter Roberson
2015 年 8 月 15 日
read the lines of the file. use unique(TheLinesCell, 'stable') and write the results out to a new file.
There are several ways to read the lines. See fgetl() for one way.
2 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!