help:about a shell script

Status
Not open for further replies.

chenny

Newbie level 2
Joined
Feb 23, 2005
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,291
There is a problem: two files: file1 and file2, there are some cotent in file1 will be replaced by file2. The replaced structure as flows
module name1
.......
.......
endmodule
now, the same structure in file2 will replace that in file1. module name1/endmoule are the keys. Write a shell script to complete. Bash or c-shell. Thanks very much
 

Hi,

you can use the awk command to do that very easly.

Regards,
Shohdy
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…