Toggle menu
24.1K
669
183
158.4K
HausaDictionary.com | Hausa English Translations
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

foobar: Difference between revisions

From HausaDictionary.com | Hausa English Translations
No edit summary
m Quick edit: appended Category:English lemmas (pid:11619)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Testing more effective ways to mass update... [https://www.mediawiki.org/wiki/Topic:Sroin3vf5haba6lf][https://www.mediawiki.org/wiki/Manual:Edit.php]... foo bar = bar bar
Testing more effective ways to mass update... [https://www.mediawiki.org/wiki/Topic:Sroin3vf5haba6lf][https://www.mediawiki.org/wiki/Manual:Edit.php]... bar bar = bar bar


<translate>
<syntaxhighlight lang="bash" style="overflow:auto;">
<!--T:29-->
php getText.php "page_title" | sed -e 's/\bfoo\b/bar/g' | php edit.php "page_title"
The above will take the text of the page <code>page_title</code> from your wiki, replace  every occurrence of the word ''foo'' with the word ''bar'', and save the result back to the page <code>page_title</code>.</translate>
</syntaxhighlight>
<translate>
[[Category:English lemmas]]
<!--T:32-->
You can do many complex text transformations of page text this way; see your unix manual's entry for [[w:sed|sed]].

Latest revision as of 00:20, 15 March 2019

Testing more effective ways to mass update... [1][2]... bar bar = bar bar

php getText.php "page_title" | sed -e 's/\bfoo\b/bar/g' | php edit.php "page_title"