Actions

Difference between revisions of "Linux"

From ACL@NCU

Line 7: Line 7:
<pre>
<pre>
find */*/*anat+tlrc.*
find */*/*anat+tlrc.*
</pre>
**find files with a suffix recursively under subdirectories
<pre>
find . -name \*.mgz -print
</pre>
</pre>



Revision as of 00:36, 18 January 2013

Useful tcsh and python commands

tcsh

  • Find files
    • with defined stem pattern under multiple different folder
find */*/*anat+tlrc.*
    • find files with a suffix recursively under subdirectories
find . -name \*.mgz -print
    • delete or copy filenames from a "pattern" search
rm `find */*/*anat+tlrc.*`

python