I'm a student from indonesia and I want to create an script that deletes few lines from a file containing the following text:
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; };
};
If i want to delete this:
zone "friedrice.com" {
type master;
file "db.friedrice.com";
allow-update { none; };
};
In the terminal I can run:
sh you.txt friedrice
How is the syntax in shell programming??
All the text is in a file, let's say you.txt
I'm a newbie, so please help me