Welcome to the TeXnik web site

Search and Replace
TUG logo

Main page

Index
English FAQ
Documentation
Software
CTAN
Search CTAN:
Main Server

Statistics

 


 


More Books

Search and Replace for two or more files

working with several files in a bigger project makes it sometimes difficult to search and replace strings for all these files. with the following perl-command (perl must be installed ;-) it's possible:

perl -e 's/Berlin City/Tokyo Metropolitan/gi' -p -i.bak *.lyx
changes in all files with suffix lyx in the actual directory the word "Berlin City" to "Tokyo Metropolitan" and (!) copy the old files to *.bak, which could be sometimes important ;-)

local time: Fri May 22 19:15:23 UTC 2026; file is: 1.2239 days old
contact webmaster _at_ TeXnik.de