Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replace a string in a string with m4

Status
Not open for further replies.

shellnewbie

Technical User
Dec 9, 2010
4
FR
Dear all,

I have the current m4 command substituting words in my script.
Code:
cat << EOF | m4 -D PROJECT_EXPLUID=${PROJECT_EXPLUID} -D PROJECT_TRIGRAMME=${PROJECT_TRIGRAMME}
it does its job for patterns like :

Code:
some commands PROJECT_TRIGRAMME some commands
but not for
Code:
sometextPROJECT_TRIGRAMMEsometext
Do you have any ideas how can i substitute text without using an other command, i searched on the man, but i dont get it. Using quotes doesn't help.

Thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top