Windows 中使用 grep、sed、awk 的 shell

发布于 2024-12-11 20:32:03 字数 109 浏览 0 评论 0原文

最近开始在一个专门使用 Windows 的地方工作,并且确实可以使用复制 bash 功能的简单 shell 来完成。 MinGw 和 Cygwin 似乎对于我的需要来说太过分了。任何建议都乐意接受。 谢谢

Recently started work at a place that uses windows exclusively, and really could do with a simple shell that replicates bash functionality. MinGw and Cygwin seem overkill for what I need. Any suggestions gladly accepted.
Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

濫情▎り 2024-12-18 20:32:03

您不必安装 Cygwin 的全部,因为您可以选择单独的软件包。

话虽如此,我仍然更喜欢安装该批次,因为我宁愿在需要时拥有所有工具,而不是必须去弄清楚它们位于哪些软件包中。即使您安装了该批次,也不会-它们迫使您使用所有这些,而且让我们面对现实吧,如今的磁盘空间非常便宜。

如果您想要诸如 grepsedawk 之类的单独二进制文件,您还可以查看 GnuWin32 - 这些是不需要 Cygwin DLL 的本机可执行文件。您只需从软件包列表中选择所需的可执行文件,它们就会为您安装。

You don't have to install all of Cygwin, since you can select individual packages.

Having said that, I still prefer to install the lot simply because I would rather have all the tools handy when I need them, rather than having to go and figure out which packages they're in. Even if you install the lot, no-ones forcing you to use all of them and, let's face it, disk space is hideously inexpensive nowadays.

If you want individual binaries for things like grep, sed and awk, you can also look into GnuWin32 - these are native executables that don't require the Cygwin DLL. You can just choose the executables you want from the package list and they'll be installed for you.

吾性傲以野 2024-12-18 20:32:03

shell 的功能通常使用外部程序。您可以下载所需工具的 Windows 版本:
grepawk, sed

您可能还想查看PowerShell - 一个实际上很好的 Windows shell(比 CMD 好很多很多),并且与 Windows 环境有良好的交互。

A shell's functionality usually uses external programs. You can download the windows versions of the tools you want:
grep, awk, sed

You might also want to take a look into PowerShell - a windows shell that is actually good(much, much, much better than CMD), and has good interaction with the Windows environment.

北凤男飞 2024-12-18 20:32:03

不完全是一个 shell,但我仍然使用 UnxUtils 包 中的工具,这是许多移植很少的工具集之一轻量级命令/应用程序/工具,在脚本中非常方便和有用。
现在我也在越来越多地探索Powershell,一个绝对值得拥有的shell一看。在维基百科的 Powershell 页面上,人们甚至可以找到cmdlet 与 Bash ao 中类似命令的比较,您可能会发现有趣。

Not exactly a shell, but I still use tools from the UnxUtils package, one of many tool sets which has ported little lightweight commands/apps/tools, ever so handy and useful in scripts.
Nowadays I am also exploring Powershell more and more, a shell certainly worth taking a look at. On Wikipedia's Powershell page one can even find a comparison of cmdlets with similar commands in Bash a.o., which you might find interesting.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文