필터 지우기
필터 지우기

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