Just another Perl shrine | |
PerlMonks |
Re: s/[newline]FOO[newline]/\\bar{foo}/sgby qq (Hermit) |
on Jun 30, 2004 at 23:56 UTC ( [id://370942]=note: print w/replies, xml ) | Need Help?? |
perl -p -i.bk -e 's/^ (\w+) $/ \\chapter{$1} /' *.tex
If there are no spaces before and after the word, remove them from the regex.
In Section
Seekers of Perl Wisdom
|
|