Difference between revisions of "Linux"
From ACL@NCU
(→tcsh) |
(→tcsh) |
||
Line 4: | Line 4: | ||
= tcsh = | = tcsh = | ||
*Find files | *Find files | ||
**with defined stem pattern under multiple different folder | ** with defined stem pattern under multiple different folder | ||
<pre> | <pre> | ||
find */*/*anat+tlrc.* | find */*/*anat+tlrc.* | ||
</pre> | </pre> | ||
**find files with a suffix recursively under subdirectories | ** find files with a suffix recursively under subdirectories | ||
<pre> | <pre> | ||
find . -name \*.mgz -print | find . -name \*.mgz -print | ||
</pre> | </pre> | ||
**delete or copy filenames from a "pattern" search | ** delete or copy filenames from a "pattern" search | ||
<pre> | <pre> | ||
rm `find */*/*anat+tlrc.*` | rm `find */*/*anat+tlrc.*` |
Revision as of 23:38, 17 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