TeXnik - Tips TeX and LaTeX


Welcome to the TeXnik website (under construction)

Search and Replace
TUG logo

Main page

Index
UK FAQ
Documentation
Software
CTAN
Search CTAN:

Statistics

Google c.t.t.

Google d.c.t.t.

 


 


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: Tue Dec 10 16:48:17 CET 2019 ; file is: 166.998530092593 days old
contact webmaster _at_ TeXnik.de