uspTukubaiコマンドに関する様々な資料がここにあります。

 

 

魂内検索

DOCUMENTS

COMMAND

FORUM

UEC DOCS

VIDEO

 

ABC順リスト |  カテゴリ別リスト

(動画教材準備中)

filehame

概要

filehame : テンプレートにファイルをはめ込む

書式

Usage : filehame -l<label> <template> <file>
Version : Mon Mar 18 07:47:06 JST 2013

説明

<template> ファイルの <label> を含む行に、<file>をはめ込みます。<label>行が複数ある場合は <file>は複数はめ込まれます。

例1

$ 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>