フィルターのクリア

Removing duplicate lines from a text file

3 ビュー (過去 30 日間)
jgillis16
jgillis16 2015 年 8 月 15 日
コメント済み: Zachary Messaglia 2018 年 3 月 23 日
I have a text file (attached) that has duplicate lines in it. How would I remove those lines?

採用された回答

Walter Roberson
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 件のコメント
jgillis16
jgillis16 2015 年 8 月 15 日
Thanks!
Zachary Messaglia
Zachary Messaglia 2018 年 3 月 23 日
Do you by any chance still have the code for this?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeText Files についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by