User:Jadrian Miles: Difference between revisions
Jump to navigation
Jump to search
| Line 18: | Line 18: | ||
* 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: | |||
*:<pre> | |||
*:foreach n ( $list ) | |||
*: operate_on $n | |||
*:end | |||
*:</pre> | |||
Revision as of 19:44, 10 February 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:
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]'
- tcsh for loop:
- foreach n ( $list )
- operate_on $n
- end