风之空灵
技术笔记---记载学到技术的点点滴滴
1/25/2013
Print substring
awk is a very good commands.
It can extract substring out of a string.
****$ grep 'abc' *.list | awk '{print substr($1,14,3)}' > test1.list
print the first collumn and print the 14th, 15th, 16th charactor into a file.
较新的博文
较旧的博文
主页
订阅:
评论 (Atom)