User:Jadrian Miles: Difference between revisions
Jump to navigation
Jump to search
| Line 19: | Line 19: | ||
* 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: | * <tt>tcsh</tt> for loop: | ||
* | *;<pre> | ||
* | *;foreach n ( $list ) | ||
* | *; operate_on $n | ||
* | *;end | ||
* | *;</pre> | ||
Revision as of 06:52, 11 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