File: html1

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 (9 lines) | stat: -rw-r--r-- 230 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
#!/usr/bin/rc
# html1 - generate the html tag that corresponds to argv[0][0] (a single char)
#
#	 bold=<b>	italic=<i>	underline=<u>

tag = `{basename $0| sed 's;\(.\)[^/]*$;\1;' }
echo -n '<'^$tag^'>'
cat $*
echo -n '</'^$tag^'>'