awk 使用
来源:互联网 发布:淘宝的旗舰店可信吗 编辑:程序博客网 时间:2024/04/30 07:59
cat english_w06.txt |awk '{print $3}' 打印上述文档第三列的所有单词
awk '{for(i=1;i<=NF;++i) if($i=="some") ++sum}END{print sum}' english_w06.txt 统计单词some和 will出现的次数,并输出统计结果到文件
awk '{for(i=1;i<=NF;++i) if($i=="will") ++sum}END{print sum}' english_w06.txt
ifconfig | awk '/eth/{inter=$1;getline;sub(/inet addr:/,"");print inter,$1}' 使用ifconfig,显示网卡ip地址
english_w06.txt
Some people are a little nervous when it comes to cooking for someone else,
but even if you haven’t done much cooking, there are some delicious meals
you can prepare that will impress your date. The best part about cooking for
someone else is that it gives you an opportunity to serve the person you are
with, and that alone will start things off on a good note. The following are some
easy but delicious things you can cook on a date with someone new.
- awk使用
- AWK使用
- awk使用
- awk使用
- AWK使用
- awk使用
- awk使用
- awk使用
- awk使用
- awk使用
- awk使用
- awk使用
- awk使用
- awk 使用
- awk使用
- awk使用
- awk 使用
- awk使用
- UVA 10815
- [Leetcode 160] Intersection of Two Linked Lists
- 有关于stm32 串口DMA的问题
- UVA 400 Unix ls
- UVa439(BFS最短路实现)
- awk 使用
- android ImageButton使用形状非方形的png图片但却显示出正方形白边的情况
- HDU-2289 Cup
- HDU 2952 Counting Sheep (DFS)
- 一个Web布局实例
- 验证数学黑洞 ,用户输入一个四位数,输出变换到6174的过程
- javascript之变量
- Java小日历
- LeetCode(150) Evaluate Reverse Polish Notation