SHARE
TWEET

Untitled

a guest Jun 18th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. test.txt  
  2. Q
  3. L
  4. A D
  5. 1 10
  6. 2 21
  7. 3 22
  8. 4 5
  9. 5 9
  10.  
  11. while read -r line;  if [[ $line == "A" ]] ||[[ $line == "Q" ]]||[[ $line == "L" ]] ; then awk '$2 < "11" { print $0 }' input1.txt; awk '$2 < "11" { print $1 }' input2.txt; done > test.txt
  12.  
  13. input1.txt
  14. Q
  15. L
  16. A D
  17. 1 10
  18. 4 5
  19. 5 9
  20. input2.txt
  21. 1
  22. 4
  23. 5
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