File: ulhref

package info (click to toggle)
wily 0.13.42-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,820 kB
  • sloc: ansic: 25,541; perl: 580; sh: 415; makefile: 400; python: 30; exp: 17
file content (6 lines) | stat: -rw-r--r-- 174 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
#!/usr/bin/rc
# uhlhref - create an unordered list, where each list item is an href

echo '<ul>'
cat $* | awk '{printf " <li><a href=\"%s\">%s</a>\n", $1, $1 }'
echo '</ul>'