私はインドネシアの学生で、次のテキストを含むファイルから数行を削除するスクリプトを作成したいと考えています。
zone "irf.com" {
type master;
file "db.irf.com";
allow-update { none; };
};
zone "friedrice.com" {
type master;
file "db.friedrice.com";
allow-update { none; };
};
zone "you.com" {
type master;
file "db.you.com";
allow-update { none; };
};
これを削除したい場合:
zone "friedrice.com" {
type master;
file "db.friedrice.com";
allow-update { none; };
};
ターミナルで実行できます:
sh you.txt friedrice
シェルプログラミングの構文はどうですか??
すべてのテキストがファイルにあるとしましょうyou.txt
私は初心者なので、助けてください