Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- echo "0:$0"
- echo "1:$1"
- echo "2:$2"
- case $1 in
- Test)
- echo $2
- ;;
- *)
- echo 'line0
- line1
- line2
- line3' | awk '
- function Test(file) {
- system("\"'$0'\" Test "file)
- }
- /line2/{
- Test($1)
- } 1'
- ;;
- esac
Advertisement
Add Comment
Please, Sign In to add comment