Tukubaiオンラインコマンドマニュアル - filehame(1)
filehame(1)
【名前】
filehame
: テンプレートにファイルをはめ込み
【書式】
Usage : filehame -l<string> <template> [<data>] Version : Sat Sep 24 10:59:05 JST 2022 Edition : 1
【説明】
<template>
ファイル中で文字列<string>
が含まれる行を<data>
ファイルの中身に置き換える。
【例1】
$ cat template <html> <meta> <!-- label1 --> </meta> <body> <!-- label2 --> </body> </html> $
$ cat data1 <script type="javascript/text"> function sb(i) { submit(getElementById(i)) } </script> $
$ cat data2 <input id="123" type="button" onclick=sb('123') value="push" /> $
$ filehame -llabel1 template data1 | filehame -llabel2 - data2 <html> <meta> <script type="javascript/text"> function sb(i) { submit(getElementById(i)) } </script> </meta> <body> <input id="123" type="button" onclick=sb('123') value="push" /> </body> </html> $