フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

how to find specific lines in a text file and replace them with other lines?

1 回表示 (過去 30 日間)
sara kowsar
sara kowsar 2018 年 11 月 15 日
閉鎖済み: Rik 2018 年 11 月 15 日
hello everyone...
i have a text file that attached . i want to find some lines that i don't know their position , and replace them with other lines.
lines that i want to remove them are:
**************************************************************
*Elset, elset=granulation, generate
1, 8393, 1
** Section: granulation
*Solid Section, elset=granulation, material=granulation
***************************************************************
and replace these lines:
*Elset, elset=Element-set1
1
** Section: Element
*Solid Section, elset=Element-set1, material=Element-num1
****************************************************************
Can someone help me ? thanks...

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by