Guest User

Untitled

a guest
Aug 16th, 2014
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. echo "0:$0"
  4. echo "1:$1"
  5. echo "2:$2"
  6.  
  7. case $1 in
  8. Test)
  9. echo $2
  10. ;;
  11. *)
  12. echo 'line0
  13. line1
  14. line2
  15. line3' | awk '
  16. function Test(file) {
  17. system("\"'$0'\" Test "file)
  18. }
  19. /line2/{
  20. Test($1)
  21. } 1'
  22. ;;
  23. esac
Advertisement
Add Comment
Please, Sign In to add comment