5,710
edits
Changes
no edit summary
[[Home | <<< back to Wiki Home]]
<code> perl -pi -e "s/p+\s+\d+(-\d*)*\.|p+\d+(-\d*)*\.//g" reading.txt </code>
=Rsync = ==rsync personae data to minibeast==*from Persona directory on local: <code>rtwomeys-work-object-2:Personae rtwomey$ rsync -avz --stats --progress . 192.168.1.31:/Volumes/Cistern/Personae/</code>== rsync to transfer files to server ===
*local current directory to home/pictures directory:
<code>rsync -avz --stats --progress Pictures roberttwomey.com:~/pictures/</code>
*grab documents from online backup:
<code>rsync -n -h -e ssh -avz --stats --progress b393466@hanjin.dreamhost.com:~/Documents/dxarts473_s11/ Documents/</code>
with optional delete
<pre>
</pre>
<pre>
</pre>
=finding things with grep = == finding things files recursively with ls and grep ===
* find this filename in a recursive search and show previous 30 lines of result:
<codepre>ls -laR . | grep -b30 "scale_signal.o" </codepre> == finding text within files recursively with grep ==<pre>grep -Hrn 'HTS_Pauses' meghan_festival/</pre>
* do this to connect to 192.168.0.39 for instance:
<code>ssh -f -L 3306:localhost:3306 rtwomey@192.168.0.39 sleep 10</code>
ssh -fNg -L 3306:localhost:3306 rtwomey@192.168.1.191
</code>
*grab a website recursively
<code> wget -r --level=1 http://www.ppc.sas.upenn.edu/ppquestionnaires.htm </code>
= Open Files from Command Line (OS X) =
*<pre>open -e solipsist\ dialog\ 20120610\ storefront.txt </pre>
=use sed to search and replace a file in place=
<pre>sed -i .bak 's/na_play/play/g' bin/prompt_them </pre>
=gphoto2=
*http://photolifetoys.blogspot.com/2012/08/control-your-camera-with-gphoto2-via.html