很好用的!

cat .htaccess| \
grep RewriteRule | \
awk '{print $2"\n"$3}' | \
sed 's/^\^/  - url : ^/g' >tmp | \
sed 's/\(^[^ ]\)/    - script : \1/g'