Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 20th, 2010 | Syntax: None | Size: 0.28 KB | Hits: 92 | Expires: Never
Copy text to clipboard
  1. #!/bin/bash
  2.  
  3. for i in `grep V1 /usr/local/src/sc/contrib/sasc-ng/sc_files/ecm.cache |awk -F":" '{print $2}'|sort|uniq`;
  4.         do
  5.         c=`mysql mythconverg -r -s --execute "select name from channel where chanid=$i"`;
  6.         h=`printf "%x" $i`
  7.         echo "[$h] $i => $c";
  8. done