Guest User

Untitled

a guest
May 25th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. while [ $i -lt 4 ]
  2. do
  3. A=$(awk -F_ '{print $2}' <<< 'one_two_test_three')
  4. echo $A
  5. done
  6.  
  7. two
  8. two
  9. two
  10. two
  11.  
  12. one
  13. two
  14. test
  15. three
  16.  
  17. A=$(awk -F_ '{print $($i)}' <<< 'one_two_test_three')
Add Comment
Please, Sign In to add comment