SHARE
TWEET

Untitled

a guest Mar 18th, 2019 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 2305195303310_ABC_A08_1378408840043.hl7
  2.  
  3. 2305195303310_ABC_A08_1378408840043.hl7
  4. Q37984932T467566261_DEF_R03_1378825633215.hl7
  5. 37982442T467537201_DEF_R03_1378823455384.hl7
  6. 37982442T467537201_MNO_R03_1378823455384.hl7
  7. 2305195303310_ABC_A08_1378408840053.hl7
  8. Q37984932T467566261_DEF_R03_1378825633215.hl7
  9. 37982442T467537201_MNO_R03_1378823455384.hl7
  10.      
  11. ABC 3
  12. DEF 3
  13. MNO 2
  14.      
  15. for i in *_*_*; do echo "$i"; done
  16.      
  17. cut -d '_' -f 2
  18.      
  19. $ for i in *_*_*; do echo "$i" | cut -d '_' -f 2 ; done |
  20.    grep . | sort | uniq -c
  21.  
  22.   3 ABC
  23.   2 DEF
  24.   1 MNO
  25.      
  26. $ for i in *_*_*; do echo "$i" | cut -d '_' -f 2 ; done |
  27.    grep . | sort | uniq -c | awk '{print $2,$1}'
  28.  
  29. ABC 3
  30. DEF 2
  31. MNO 1
  32.      
  33. ls | cut -d_ -f2 | sort | uniq -c
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top