5,710
edits
Changes
Home
,→forcing compile as 32bit, i386 on os x
<code>rsync -e ssh -avz --stats --progress USER@SERVER.dreamhost.com:~/Documents .</code>
=== forcing compile as 32bit, i386 on os x ===
* find occurrences of '-m64':
<code> grep -r0 -e"x86_64" *</code>
* replace occurrences of '-m64' with '-m32':
<code> grep -l -r0 -e"-m64" * | xargs sed -i "" 's/-m64/-m32/g' </code>
* replace occurrences of x86_64 with i386:
<code> grep -l -r0 -e"x86_64" * | xargs sed -i "" 's/x86_64/i386/g' </code>
=== finding things with ls and grep ===
* find this filename in a recursive search and show previous 30 lines of result:
<code>ls -laR . | grep -b30 "scale_signal.o" </code>