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: Fri Apr 19 06:07:49 CEST 2024 ; file is: 1758.51210648148 days old
contact webmaster _at_ TeXnik.de