はuniqコマンド - デリミタオプションを取得し、カラムに基づいて検索する方法?以下
barbie 325 social activist
david 214 IT professional
david 457 mathematician
david 458 biologist
john 85 engineer
john 98 doctor
peter 100 statistician
FILE.TXTという名前のタブ区切らファイルには、私は、ソートの場合はオプション(-tおよび-kを使用してカラム1に基づき、uniqのコマンドを実行します(コラム1に基づいて)ソートされコマンド)
uniq -d (-t$'\t' -k1,1) file.txt [this is incorrect syntax in bracket , but i want to run it in similar way]
これはかなり簡単ですが、自分の道を見つけることができません。
私のように出力を得ることができるように:私を助けて
david 214 IT professional
john 85 engineer
、事前に感謝:)
「214 ITプロ」はどこから来たのですか? (エンジニアは大文字で、スペルミスはすべて小文字ですか?) – tripleee
ありがとう、私は編集しました。 – bioinformatician