Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. test_name=$(
  2. find ../tests/ -name '*.sv' |
  3. awk '{print "FALSEn"$0}' |
  4. cut -d "/" -f3 |
  5. cut -d "." -f1 |
  6. zenity --list
  7. --radiolist
  8. --title "Select test"
  9. --text "Tests..."
  10. --column "Box"
  11. --column "Files"
  12. ) #select test via zenity
  13.  
  14. test_name=$(
  15. find ../tests/ -name '*.sv' -exec basename {} .sv ; |
  16. awk 'NR==1{print "TRUEn"$0} NR>1{print "FALSEn"$0}' |
  17. zenity --list
  18. --radiolist
  19. --title "Select test"
  20. --text "Tests..."
  21. --column "Box"
  22. --column "Files"
  23. ) #select test via zenity
  24.  
  25. sed -e '1iTRUE' -e '1!iFALSE'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement