1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.ar/common/fastmod.md
K.B.Dharun Krishna 3a37343e59
pages.{ar,fa}: remove translated placeholders (#11997)
* pages.{ar,fa}: remove translated placeholders

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* common-arguments: reword note

* rmdir: fix Arabic translation

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-05 15:48:59 +05:30

1.6 KiB

fastmod

أداة للاستبدال الجزئي للنصوص في قاعدة الأكواد لديك. التعبيرات النمطية يعالجها قفص من بضاعة رست وهو regex. لمزيد من التفاصيل: https://github.com/facebookincubator/fastmod.

  • استبدال بالتعبيرات النمطية في كل ملفات المسار الحالي وأبنائه في الملفات غير المُتجاهلة بـ .ignore أو .gitignore:

fastmod {{regex_pattern}} {{replacement}}

  • استبدال متجاهلا حالة الحرف في ملف أو في ملفات مسار:

fastmod --ignore-case {{regex_pattern}} {{replacement}} -- {{path/to/file path/to/directory ...}}

  • استبدال بالتعبيرات النمطية مع تحديد المكان الذي يُستبدل فيه:

fastmod {{regex}} {{replacement}} --dir {{path/to/directory}} --iglob {{'**/*.{js,json}'}}

  • استبدال بالنص مُطابقةً (وليس التعبيرات النمطية)، في ملفات امتداداتهم إما js أو json فحسب:

fastmod --fixed-strings {{exact_string}} {{replacement}} --extensions {{json,js}}

  • استبدال بجميع النصوص مُطابقةً، مباشرة دون مِحَثِّ تأكيد (prompt):

fastmod --accept-all --fixed-strings {{exact_string}} {{replacement}}

  • استبدال بجميع النصوص مُطابقةً، مباشرة دون تأكيد، مع طباعة الملفات المُستبدل فيها:

fastmod --accept-all --print-changed-files --fixed-strings {{exact_string}} {{replacement}}