10 2015 档案
摘要:vim ~/.bashrcGREP_OPTIONS="-irns --exclude-dir=output --exclude=tags --exclude=*.files"然后:source ~/.bashrc
阅读全文
摘要:什么是Timer,什么是Counter几乎每个嵌入式板都会有counter和timer,重要性比肩gpio.本质上来看timer和counter几乎是一样的东西,底层都是一个硬件counter,如果是按照规律的时间跳表,就是timer,如果是按照不规律的事件讯号跳表就是counter.一般timer...
阅读全文
摘要:#!/bin/bash cmd="ls -lt | grep ^d | awk 'NR==1 {print $9}'" $cmd 这是一个获取文件夹名字的脚本,但是却提示: ls: cannot access |: no such file or directory ls: cannot acces
阅读全文
摘要:统计文件行数wc -l filenamegrep -c "" filenamesed-n'$='filenameawk'END{print NR}'filename但是这几种方法的效率却是不同的。通过以下测试:time wc -l filename 平均:0.237667stime grep -c ...
阅读全文
摘要:首先分享一个哥们的文章:http://coolshell.cn/articles/9070.html
阅读全文