(動画教材準備中)
filehame : テンプレートにファイルをはめ込む
Usage : filehame -l<label> <template> <file>
Version : Mon Mar 18 07:47:06 JST 2013
<template> ファイルの <label> を含む行に、<file>をはめ込みます。<label>行が複数ある場合は <file>は複数はめ込まれます。
$ cat template
<html>
<meta>
</meta>
<body>
</body>
</html>$ cat file1
<script type="javascript/text">
function f(i) {
obj=getElementById(i);
}
</script>
$ cat file2
<p id="123">hello</p>$ filehame -llabel-1 template file1 | filehame -llabel-2 - file2 > result
$ cat result
<html>
<meta>
<script type="javascript/text">
function f(i) {
obj=getElementById(i);
}
</script>
</meta>
<body>
<p id="123">hello</p>
<body>
</html>