If you cant explain it simply, you dont understand it well enough

摘要: Vim 的常用操作 一. vim中的查找替换 修改当前行 :s/str1/str2/ 修改当前行的第一个str1为str2 :s/str1/str2/g 修改当前行的所有str1为str2 修改第n行到第m行 :n,ms/str1/str2/ 修改第n行到第m行的第一个str1为str2 :n,.s 阅读全文
posted @ 2015-01-07 21:55 zk47 阅读(234) 评论(0) 推荐(0) 编辑
摘要: Shell 处理字符串和{}操作1. 获取变量的长度获取字符串长度的方法大概有4种:(以hello world 为例)通过 wc -L $ echo "hello world" | wc -L 11通过expr length string$ expr length "hello world"1... 阅读全文
posted @ 2015-01-07 21:52 zk47 阅读(300) 评论(0) 推荐(0) 编辑

I am a stupid bird, and I need to work hard