問題タブ [agrep]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
bash - エラー agrep を修正する方法: パターンが長すぎます (32 文字を超えています) 文字列にピリオドがない場合、エラーは表示されませんか?
agrep はagrep: pattern too long (has > 32 chars)
、パターン文字列にピリオド (.) がある場合にエラーを返しますが、それ以外の場合はエラーになりません。
2つの文字列を(ほぼ)比較したいので、そのためにagrepを使用していますが、エラーが発生しますagrep: pattern too long (has > 32 chars)
。しかし、パターン文字列にピリオドがなければエラーにならないことがわかりました (なぜ?)
予期される出力は 1 であり、代わりにエラーが発生します。
agrep: pattern too long (has > 32 chars)
ピリオドを削除すると機能します。
r - 近似文字列一致のロジックは何ですか?
次の例の理由を知っている人はいますか: