Code Sample |
#!/bin/sh url='http://damnsmalllinux.org/cgi-bin/forums/ikonboard.cgi?act=Search&CODE=02&SID=4471bea06c252246' delikmiter='|' wget "$url" -O - | grep "Topic Title" | sed 's/<!-- Begin Topic Entry [0-9]* -->/\n/g' | sed "s/linkthru[desc]*\">/> $delimiter /g" | sed "s/Profile[^>]*>\|highlight.>/> $delimiter /g" | see "s/<b>\([0-9]*\)<\/b>/ $delimiter \1/g" | sed '1d;s/Open Topic .*\|Last Post:/ /g' | sed 's/<[^>]*>//g' | sed 's/ */ /g' | head -4 | awk -F $delimiter '{print $2 "/" $3 "/" $4 "/" $5 "/" $6 "/" $7 "/" $8 "/" $9}' exit 0 |
Code Sample |
awk-F $delimiter '{print $2 "/" $3 "/" $4 "/" $5 "/" $6 "/" $7 "/" $8 "/" $9}' |
Code Sample |
awk -F $delimiter '{print $8 "/" $2 "/" $4 "/" $9}' |