2 <TTimo> I need to remember that grep trick
\r
3 <Mercury> 'find -type f | xargs grep -n whatever' is handy..
\r
4 <Mercury> find -type f -name '*.[ch]' is even better at times.
\r
6 stdout / stderr redirections:
\r
7 make -f makefile.cygwin 2> err.log
\r
8 make -f makefile.cygwin >& full.log
\r
10 escape shell expansion:
\r
11 find gtk-20001023 -name "*.zip" -exec unzip {} \;
\r
13 find //c/Donwload/Gtk-20001226 -name '*src*zip' -exec unzip {} \;
\r
14 find //c/Donwload/Gtk-20001226 -name '*dev*zip' -exec unzip {} \;
\r
16 simple encryption for /etc/passwd entries:
\r
17 perl -e 'print crypt("password","hk");'
\r
19 debian and /etc/init.d
\r
22 silly hint on sed and regexp:
\r
23 cat bspfile.c | sed -e 's/\([^_]\)malloc/\1safe_malloc/' | grep malloc
\r