File: template.sh

package info (click to toggle)
tuxpaint 1%3A0.9.35-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 64,512 kB
  • sloc: ansic: 62,209; makefile: 1,425; sh: 790; objc: 303; cpp: 186; python: 182; php: 43
file content (13 lines) | stat: -rwxr-xr-x 198 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash

# 
# Process a document containing shell escape sequences.
#
# Usage: template.sh document.shdoc
#

bash <<<"cat <<__SHDOC_TEMPLATE__$$
$(cat "$@")
__SHDOC_TEMPLATE__$$"

# vim:ft=bash