Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/awk -f
- BEGIN {FS=":"}
- /^ChannelInformation/ { found = 1; j++; printf j ","; next}
- found == 1 { for (i=2;i<=NF;i++) { gsub(/^[ \t]+/,"",$i); printf $i }; printf "," }
- /^s*$/ && found == 1 { printf "\n"; found = 0 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement