如何在Windows中运行一个awk命令? [英] How to run an awk commands in windows?

查看:935
本文介绍了如何在Windows中运行一个awk命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经下载了GAWK从这里,但我似乎无法给弄清楚如何使用它。我只是试图运行一个命令,而不是写一个。如果有人愿意帮助我将不胜AP preciative。感谢您的时间。

I have downloaded gawk from here, but I can't seem to figure out how to use it. I am simply trying to run a command, not write one. If anybody is willing to help I would be most appreciative. Thank you for your time.

推荐答案

如果你想避免的完整路径AWK所有的丑陋,你需要更新你的PATH变量,以包含路径到AWK所在的目录,那么你可以只需键入

If you want to avoid all the ugliness of the full path to awk, you need to update your PATH variable to include the path to the directory where awk is located, then you can just type

awk

运行您的程序。

进入控制面板 - >系统 - >高级,并设置PATH环境变量,包括C:\\ Program Files文件(x86)的\\的GnuWin32从previous进入末(用分号隔开) 。

Go to Control Panel->System->Advanced and set your PATH environment variable to include "C:\Program Files (x86)\GnuWin32" at the end (separated by a semi-colon) from previous entry.

这篇关于如何在Windows中运行一个awk命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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