Misc Notes

grep -nHr gmake * –exclude *.svn* awk -F : ‘{print $1}’ xargs sed -si.bak -e ‘s/gmake/make/g’

doubt in find grep sed
http://www.codecomments.com/archive287-2005-1-369741.html

http://www.delorie.com/gnu/docs/sed/sed_toc.html#SEC_Contents
http://www.unix.org.ua/orelly/unix/sedawk/index.htm

rpm -qilp package.rpm
rpm -qf /usr/bin/filename
http://fedoranews.org/alex/tutorial/rpm/

find ./ -name ‘*.swp’ -exec rm {} ;
find ./ -name ‘*.swp’ -ok rm {} ;

objcopy –strip-all from to
objcopy –strip-debug from to

ls -ltru
-t sort by modification time
-r reverse
-u with -lt sort by, and show, access time
-l show access time and sort by name
otherwise sort by accsee time

grep -nHr FileSourced * –exclude=*.svn*

No tags for this post.

相关文章

Speak Your Mind

If you want a pic to show with your comment, go get a gravatar!