chmod,chown,clear,cmp,dd,df,diff,echo,export,grep,head,ifconfig, translation-templates/*: add Farsi translation (#10543)
* common/*: add Farsi translation
* contributing-guides/alias-pages.md subcommand-mention.md: added Farsi translation
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* pages.fa/common/chmod cmp dd df diff echo grep ifconfig: reviewed and fix translations
* common-arguments: add Farsi translation
---------
Co-authored-by: mortalpuppet <misagh.sj@mgail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 14:57:36 +01:00
|
|
|
|
# grep
|
|
|
|
|
|
2023-10-26 18:31:26 +01:00
|
|
|
|
> یافتن الگو در فایل ها به کمک عبارات با قاعده.
|
2023-11-06 17:44:12 +00:00
|
|
|
|
> اطلاعات بیشتر: <https://www.gnu.org/software/grep/manual/grep.html>.
|
chmod,chown,clear,cmp,dd,df,diff,echo,export,grep,head,ifconfig, translation-templates/*: add Farsi translation (#10543)
* common/*: add Farsi translation
* contributing-guides/alias-pages.md subcommand-mention.md: added Farsi translation
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* pages.fa/common/chmod cmp dd df diff echo grep ifconfig: reviewed and fix translations
* common-arguments: add Farsi translation
---------
Co-authored-by: mortalpuppet <misagh.sj@mgail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 14:57:36 +01:00
|
|
|
|
|
|
|
|
|
- جستجو یک الگو در یک فایل :
|
|
|
|
|
|
2024-01-05 10:18:59 +00:00
|
|
|
|
`grep "{{search_pattern}}" {{path/to/file}}`
|
chmod,chown,clear,cmp,dd,df,diff,echo,export,grep,head,ifconfig, translation-templates/*: add Farsi translation (#10543)
* common/*: add Farsi translation
* contributing-guides/alias-pages.md subcommand-mention.md: added Farsi translation
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* pages.fa/common/chmod cmp dd df diff echo grep ifconfig: reviewed and fix translations
* common-arguments: add Farsi translation
---------
Co-authored-by: mortalpuppet <misagh.sj@mgail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 14:57:36 +01:00
|
|
|
|
|
|
|
|
|
- جستجو یک عبارت خاص (معادل مقایسه رشته ای) :
|
|
|
|
|
|
2024-01-05 10:18:59 +00:00
|
|
|
|
`grep --fixed-strings "{{exact_string}}" {{path/to/file}}`
|
chmod,chown,clear,cmp,dd,df,diff,echo,export,grep,head,ifconfig, translation-templates/*: add Farsi translation (#10543)
* common/*: add Farsi translation
* contributing-guides/alias-pages.md subcommand-mention.md: added Farsi translation
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* pages.fa/common/chmod cmp dd df diff echo grep ifconfig: reviewed and fix translations
* common-arguments: add Farsi translation
---------
Co-authored-by: mortalpuppet <misagh.sj@mgail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 14:57:36 +01:00
|
|
|
|
|
2023-10-26 18:31:26 +01:00
|
|
|
|
- جستجو بازگشتی یک الگو در تمامی فایل های یک پوشه، نمایش تمامی خطوط منطبق، فایل های باینری را رد میکند:
|
chmod,chown,clear,cmp,dd,df,diff,echo,export,grep,head,ifconfig, translation-templates/*: add Farsi translation (#10543)
* common/*: add Farsi translation
* contributing-guides/alias-pages.md subcommand-mention.md: added Farsi translation
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* pages.fa/common/chmod cmp dd df diff echo grep ifconfig: reviewed and fix translations
* common-arguments: add Farsi translation
---------
Co-authored-by: mortalpuppet <misagh.sj@mgail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 14:57:36 +01:00
|
|
|
|
|
2024-01-05 10:18:59 +00:00
|
|
|
|
`grep --recursive --line-number --binary-files={{without-match}} "{{search_pattern}}" {{path/to/directory}}`
|
chmod,chown,clear,cmp,dd,df,diff,echo,export,grep,head,ifconfig, translation-templates/*: add Farsi translation (#10543)
* common/*: add Farsi translation
* contributing-guides/alias-pages.md subcommand-mention.md: added Farsi translation
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* pages.fa/common/chmod cmp dd df diff echo grep ifconfig: reviewed and fix translations
* common-arguments: add Farsi translation
---------
Co-authored-by: mortalpuppet <misagh.sj@mgail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 14:57:36 +01:00
|
|
|
|
|
|
|
|
|
- استفاده از عبارات با قاعده توسعه یافته (با پشتیبانی از `?`، `+`، `{}`، `()` و `|`)، در حالت حساس به بزرگی کوچکی کاراکتر ها :
|
|
|
|
|
|
2024-01-05 10:18:59 +00:00
|
|
|
|
`grep --extended-regexp --ignore-case "{{search_pattern}}" {{path/to/file}}`
|
chmod,chown,clear,cmp,dd,df,diff,echo,export,grep,head,ifconfig, translation-templates/*: add Farsi translation (#10543)
* common/*: add Farsi translation
* contributing-guides/alias-pages.md subcommand-mention.md: added Farsi translation
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* pages.fa/common/chmod cmp dd df diff echo grep ifconfig: reviewed and fix translations
* common-arguments: add Farsi translation
---------
Co-authored-by: mortalpuppet <misagh.sj@mgail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 14:57:36 +01:00
|
|
|
|
|
2023-10-26 18:31:26 +01:00
|
|
|
|
- چاپ 3 خط از قبل و بعد محل انطباق:
|
chmod,chown,clear,cmp,dd,df,diff,echo,export,grep,head,ifconfig, translation-templates/*: add Farsi translation (#10543)
* common/*: add Farsi translation
* contributing-guides/alias-pages.md subcommand-mention.md: added Farsi translation
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* pages.fa/common/chmod cmp dd df diff echo grep ifconfig: reviewed and fix translations
* common-arguments: add Farsi translation
---------
Co-authored-by: mortalpuppet <misagh.sj@mgail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 14:57:36 +01:00
|
|
|
|
|
2024-01-05 10:18:59 +00:00
|
|
|
|
`grep --{{context|before-context|after-context}}={{3}} "{{search_pattern}}" {{path/to/file}}`
|
chmod,chown,clear,cmp,dd,df,diff,echo,export,grep,head,ifconfig, translation-templates/*: add Farsi translation (#10543)
* common/*: add Farsi translation
* contributing-guides/alias-pages.md subcommand-mention.md: added Farsi translation
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* pages.fa/common/chmod cmp dd df diff echo grep ifconfig: reviewed and fix translations
* common-arguments: add Farsi translation
---------
Co-authored-by: mortalpuppet <misagh.sj@mgail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 14:57:36 +01:00
|
|
|
|
|
|
|
|
|
- چاپ نام فایل و شماره خط برای هر انطباق با رنگبندی :
|
|
|
|
|
|
2024-01-05 10:18:59 +00:00
|
|
|
|
`grep --with-filename --line-number --color=always "{{search_pattern}}" {{path/to/file}}`
|
chmod,chown,clear,cmp,dd,df,diff,echo,export,grep,head,ifconfig, translation-templates/*: add Farsi translation (#10543)
* common/*: add Farsi translation
* contributing-guides/alias-pages.md subcommand-mention.md: added Farsi translation
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* pages.fa/common/chmod cmp dd df diff echo grep ifconfig: reviewed and fix translations
* common-arguments: add Farsi translation
---------
Co-authored-by: mortalpuppet <misagh.sj@mgail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 14:57:36 +01:00
|
|
|
|
|
|
|
|
|
- جستجوی خطوط منطبق، چاپ متن منطبق :
|
|
|
|
|
|
2024-01-05 10:18:59 +00:00
|
|
|
|
`grep --only-matching "{{search_pattern}}" {{path/to/file}}`
|
chmod,chown,clear,cmp,dd,df,diff,echo,export,grep,head,ifconfig, translation-templates/*: add Farsi translation (#10543)
* common/*: add Farsi translation
* contributing-guides/alias-pages.md subcommand-mention.md: added Farsi translation
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* Update pages.fa/common/chmod.md
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
* pages.fa/common/chmod cmp dd df diff echo grep ifconfig: reviewed and fix translations
* common-arguments: add Farsi translation
---------
Co-authored-by: mortalpuppet <misagh.sj@mgail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-08-09 14:57:36 +01:00
|
|
|
|
|
|
|
|
|
- ورودی استاندارد (stdin) رو برای الگوهایی که منطبق نیستند جستجو میکند :
|
|
|
|
|
|
2024-01-05 10:18:59 +00:00
|
|
|
|
`cat {{path/to/file}} | grep --invert-match "{{search_pattern}}"`
|