mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 12:01:10 +00:00
8037810110
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@177 8a3a26a2-13c4-0310-b231-cf6edde360e5
33 lines
814 B
Text
33 lines
814 B
Text
find and xargs:
|
|
<TTimo> I need to remember that grep trick
|
|
<Mercury> 'find -type f | xargs grep -n whatever' is handy..
|
|
<Mercury> find -type f -name '*.[ch]' is even better at times.
|
|
|
|
stdout / stderr redirections:
|
|
make -f makefile.cygwin 2> err.log
|
|
make -f makefile.cygwin >& full.log
|
|
|
|
escape shell expansion:
|
|
find gtk-20001023 -name "*.zip" -exec unzip {} \;
|
|
find and -exec:
|
|
find //c/Donwload/Gtk-20001226 -name '*src*zip' -exec unzip {} \;
|
|
find //c/Donwload/Gtk-20001226 -name '*dev*zip' -exec unzip {} \;
|
|
|
|
simple encryption for /etc/passwd entries:
|
|
perl -e 'print crypt("password","hk");'
|
|
|
|
debian and /etc/init.d
|
|
update-rc.d
|
|
|
|
silly hint on sed and regexp:
|
|
cat bspfile.c | sed -e 's/\([^_]\)malloc/\1safe_malloc/' | grep malloc
|
|
|
|
*poke 10*
|
|
bleh
|
|
bleh
|
|
bleh
|
|
bleh
|
|
bleh
|
|
bleh
|
|
bleh
|
|
bleh
|