Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1686

FindReplace in a file

$
0
0
Further to FindReplace in a file,
using the ReplaceText command from the TextUtils plugin is another fast method to find and replace text in a text file;
Code:
ReplaceText "e:\cobolscript\cobcal.cbl" /w /r:"CALENDAR USING 2024 12":"CALENDAR USING %_year %_month" > r:\cobcal.cbl

Code:
REPLACETEXT — Replace strings in text from a file.

Syntax:
REPLACETEXT /A:attribs /C /CP:n /H /N /P /R:from:to /S /W /X:from:to filename…

/A:attribs    attributes mask; valid flags are...

Read more

Viewing all articles
Browse latest Browse all 1686

Trending Articles