User:Jadrian Miles: Difference between revisions
Jump to navigation
Jump to search
| Line 23: | Line 23: | ||
* Generate a random filename from the command line: <pre>set tmpfile=/tmp/`head -q -c 8 /proc/sys/kernel/random/uuid`</pre> | * Generate a random filename from the command line: <pre>set tmpfile=/tmp/`head -q -c 8 /proc/sys/kernel/random/uuid`</pre> | ||
* Convert stdin to lowercase on stdout: <pre>tr '[A-Z]' '[a-z]'</pre> | * Convert stdin to lowercase on stdout: <pre>tr '[A-Z]' '[a-z]'</pre> | ||
* <tt>tcsh</tt> for loop: | * Test for host availability in <tt>tcsh</tt> (for loop demo): | ||
*;<pre> | *;<pre> | ||
*;foreach | *;foreach h ( `cat hostlist` ) | ||
*; | *; ssh $h uname -n | ||
*;end | *;end | ||
*;</pre> | *;</pre> | ||
* Update a directory with stuff that exists in a CVS repository but not in the directory: | * Update a directory with stuff that exists in a CVS repository but not in the directory: | ||
*;<pre>cvs update -d</pre> | *;<pre>cvs update -d</pre> | ||
Revision as of 22:38, 26 March 2009
I started my PhD in CS at Brown in Fall 2006. I work on data processing, measurement, and model reconstruction from diffusion MRI of the brain.
You can find me elsewhere online:
There are a number of directories related to me on the CS filesystem, all of which are linked from file:///map/gfx0/users/jadrian
Personal Documents
Draft pages / notes
Nifty code snippets
- Generate a random filename from the command line:
set tmpfile=/tmp/`head -q -c 8 /proc/sys/kernel/random/uuid`
- Convert stdin to lowercase on stdout:
tr '[A-Z]' '[a-z]'
- Test for host availability in tcsh (for loop demo):
- foreach h ( `cat hostlist` )
- ssh $h uname -n
- end
- Update a directory with stuff that exists in a CVS repository but not in the directory:
cvs update -d