grep: update translations (#12962)

This commit is contained in:
spageektti
2024-06-13 19:08:33 +02:00
committed by GitHub
parent d387240363
commit 122cdf8cd2
11 changed files with 60 additions and 60 deletions

View File

@@ -9,15 +9,15 @@
- جستجو یک عبارت خاص (معادل مقایسه رشته ای) :
`grep --fixed-strings "{{exact_string}}" {{path/to/file}}`
`grep {{-F|--fixed-strings}} "{{exact_string}}" {{path/to/file}}`
- جستجو بازگشتی یک الگو در تمامی فایل های یک پوشه، نمایش تمامی خطوط منطبق، فایل های باینری را رد میکند:
`grep --recursive --line-number --binary-files={{without-match}} "{{search_pattern}}" {{path/to/directory}}`
`grep {{-r|--recursive}} {{-n|--line-number}} --binary-files={{without-match}} "{{search_pattern}}" {{path/to/directory}}`
- استفاده از عبارات با قاعده توسعه یافته (با پشتیبانی از `?`، `+`، `{}`، `()` و `|`)، در حالت حساس به بزرگی کوچکی کاراکتر ها :
`grep --extended-regexp --ignore-case "{{search_pattern}}" {{path/to/file}}`
`grep {{-E|--extended-regexp}} {{-i|--ignore-case}} "{{search_pattern}}" {{path/to/file}}`
- چاپ 3 خط از قبل و بعد محل انطباق:
@@ -25,12 +25,12 @@
- چاپ نام فایل و شماره خط برای هر انطباق با رنگبندی :
`grep --with-filename --line-number --color=always "{{search_pattern}}" {{path/to/file}}`
`grep {{-H|--with-filename}} {{-n|--line-number}} --color=always "{{search_pattern}}" {{path/to/file}}`
- جستجوی خطوط منطبق، چاپ متن منطبق :
`grep --only-matching "{{search_pattern}}" {{path/to/file}}`
`grep {{-o|--only-matching}} "{{search_pattern}}" {{path/to/file}}`
- ورودی استاندارد (stdin) رو برای الگوهایی که منطبق نیستند جستجو میکند :
`cat {{path/to/file}} | grep --invert-match "{{search_pattern}}"`
`cat {{path/to/file}} | grep {{-v|--invert-match}} "{{search_pattern}}"`