Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
#!/bin/bash PROGRAMS="http://www.keshet-tv.com/Programs.aspx" prog_file=$(mktemp) curl "$PROGRAMS" | iconv -f cp1255 -t utf8 | perl -nle 'm|<a[^>]*ProgID=(\d+).*nbsp;([^<>]+)</a>| and print "#$1#$2#";' > $prog_file prog="$(cut $prog_file -d'#' -f3 | zenity --list --text "Choose Program?" --column "Program" --height 600 --width 350)" prog_id=$(grep "#${prog}#" $prog_file | cut -d'#' -f2) rm -f $prog_file
This paste will be private.
From the Design Piracy series on my blog: