ifconfig | grep mask
android list sdk -a android update sdk -u -a -t 1,2,3,4,..,n
adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp'
du -hs /path/to/the/directory
svn blame
某特定行,如第42行svn blame main.cpp | cat -n | grep 42
mv `ls *.txt | head -1` destination
find res/layout -type f -exec sed -i 's/fill_parent/match_parent/g' {} \;find res/layout -type f -exec sed -i 's/fill_parent/match_parent/g' {} +
或者
find res/layout -type f -print0 | xargs -0 sed -i 's/fill_parent/match_parent/g'
被划掉的命令有性能问题,见这里的讨论
enca -L zh_CN -x UTF-8 filecomments powered by Disqus