If you happen to have created a channels.conf after a lengthy scanning process using w_scan:
w_scan -f c -c PL -X -S 1 -v
(in this case a Polish DVB-C scan with SR 6875)
then you can use the following line to create your own scan table (you have to run it as root to write to /usr/share):
cut -d: -f2,3,4,5,6 channels.conf | sort -u | awk -F["/:"] '{ printf "[CHANNEL]\n\tDELIVERY_SYSTEM = DVBC/ANNEX_A\n\tFREQUENCY = %s\n\tSYMBOL_RATE = %s\n\tINNER_FEC = %s\n\tMODULATION = %s\n\tINVERSION = %s\n\n", $1, $3, $4, $5, $2 }' > /usr/share/dvb/dvb-c/pl-Toya
hi Mateusz,
just wanted to say a thank you. DIGI in Hungary just reorganized all their DVB-C muxes and with your oneliner, I could simply feed them into tvheadend. <3