fork download
  1. declare -A seen_labels=( )
  2. while IFS= read -r str && IFS= read -r label; do
  3. [[ ${seen_labels[$label]} ]] && continue
  4. seen_labels[$label]=1
  5. printf '%s\n' "$str"
  6. done
  7.  
Success #stdin #stdout 0s 19632KB
stdin
This text is unique
TEXT A    
This is also unique
TEXT A    
Completely unique text here
TEXT B    
Some more unique text
TEXT C
stdout
This text is unique
Completely unique text here
Some more unique text