「<」という文字をエスケープする方法がわからず、「指定されたファイルが見つかりません」というエラーが表示されます。誰も助けることができますか?WindowsのPowerShellでackを使って '<'を検索するには?
Windows XPでは、PowerShellでackを使用しています。
質問ack-grep: chars escapingは私のものと非常によく似ていますが、その質問のために提示され解決された解決策は私には役に立たない。
PS C:\xampp\htdocs> ack abcd
<works as expected>
PS C:\xampp\htdocs> ack <
The redirection operator '<' is not supported yet.
At line:1 char:5
+ ack < <<<<
PS C:\xampp\htdocs> ack \<
The syntax of the command is incorrect.
PS C:\xampp\htdocs> ack '<'
The syntax of the command is incorrect.
PS C:\xampp\htdocs> ack '\<'
The syntax of the command is incorrect.
PS C:\xampp\htdocs> ack [<]
The system cannot find the file specified.
PS C:\xampp\htdocs> ack '[<]'
The system cannot find the file specified.
PS C:\xampp\htdocs> ack '[\<]'
The system cannot find the file specified.
PS C:\xampp\htdocs> ack \Q<\E
The system cannot find the file specified.
私はその機能が存在するかどうかわかりませんでした。私にそれを知らせてくれてありがとう。あなたが提案した2番目のコマンドは私の問題を解決しました。 – Tom