你知道一个类似的程序为wc(unix字计数命令)在Windows上? [英] Do you know a similar program for wc (unix word count command) on Windows?

查看:214
本文介绍了你知道一个类似的程序为wc(unix字计数命令)在Windows上?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

快速搜索可让我 tawbaware wc ,但它不接受stdout作为输入流,意味着我不能在DOS会话中使用管道。

A quick search gives me tawbaware wc, but it does not accept stdout as input stream, meaning I can not use pipe within a DOS session.

注意:我不能安装cygwin或使用powershell(这将允许'| foreach-object { get-content $ _)。count}')

Note: I can not install cygwin or use powershell (which would have allowed a '|foreach-object {(get-content $_).count}')

unxutils gnuwin32 包可能具有此功能...

unxutils and and gnuwin32 Packages might have this feature...

推荐答案

您可以使用原始的wc,为windows构建:它是 coreutils 包。获取最新的coreutils exe

You can use the original "wc", built for windows: it is part of the coreutils package. Get the most recent coreutils exe.

这篇关于你知道一个类似的程序为wc(unix字计数命令)在Windows上?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆