有没有办法在玉米饼控制台窗口中对输出进行分类?
我可以在Tortoisehg控制台窗口中运行HG命令。有时,我想管道到另一个命令以过滤输出或排序。不太确定如何在Tortoisehg中执行此操作(尽管我知道我可以在“ CMD”窗口中运行HG命令,然后将管道像普通批处理文件一样到另一个命令)。
我已经尝试了UNIX和Windows CMD版本的输出输出版本。作为一个简单的示例(说明问题,但不一定是我可以尝试的限制...):
Unix: hg branches | grep -i inactive
CMD: hg branches | findstr /I inactive
这些都不会在Tortoisehg “ Console” 窗口中使用。我发现在控制台窗口中运行命令比在CMD壳中更方便,因为我的键入命令将按时间顺序显示,并通过GUI执行其他命令(通常在控制台窗口中显示)。
I can run hg commands in the TortoiseHg console window. Sometimes I want to pipe to another command to filter output or sort. Not really sure how to do this in TortoiseHg (although I know I can run hg commands in the 'Cmd' window and pipe to another command like a normal batch file).
I've tried both Unix and Windows CMD versions of piping the output. As a simple example (to illustrate the issue, but not necessarily the limits of what I could try...):
Unix: hg branches | grep -i inactive
CMD: hg branches | findstr /I inactive
Neither of these will work in the TortoiseHg "Console" window. I would find it more convenient to run commands in the console window than in the CMD shell as my typed commands would be shown chronologically with other commands executed via the GUI (that normally show in the Console window).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
,在这里看不到任何麻烦(Win32CHCP是本地扩展控制台输出,与任务无关)
端子Thg
cmd-window
Your cmd-sample "just work", can't see any troubles here (win32chcp is local extension for console outputs, irrelevant to tasks)
Terminal THG
CMD-window