Editing
Scanco Administration
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Using fda, pipe and search==== The <code>fda</code> (file do all) command in conjunction with <code>sys$pipe</code> and <code>search</code> can be quite helpful. Generally, use <code>fda</code> if you want to have a wildcard to capture many files in one command line, otherwise simply use <code>sys$pipe</code> and <code>search</code>. It's easiest to simply see examples. In this case, read the ISQ headers and use <code>...</code> to include all subdirectories: $ fda ctheader dk0:[microct.data.0001234...]*.isq Here we include all AIM files, no matter whether it's a C1234567.AIM or C1234567_SEG.AIM or whatever else: $ fda "aix -l" dk0:[microct.data.0001234.00005678]*.aim Note the use of double-quotes around the target of the <code>fda</code> command when there are more than one strings in the command. In this example we ensure the filename is exactly 8 characters using "%" instead of "*": $ fda aix dk0:[microct.data...]C%%%%%%%.AIM [[Image:Bones2.jpg|20px]] <b>Warning! </b> It's a good practise to always test your wildcard usage with <code>dir</code> before applying a large command: $ dir dk0:[xxx...]*.aim Combine <code>fda</code> with <code>sys$pipe</code> and <code>search</code>: $ pipe fda "aix -l" dk0:[microct...]*.aim | search sys$pipe "Slope" And you can redirect the output into a file: $ fda/output=sys$scratch:all_headers.log aix dk0:[microct...]*.aim $ pipe fda type *.log | search sys$pipe "BV/TV" /output=BVTV.txt $ pipe fda/output=sys$scratch:zscan.txt "aix -l" C%%%%%%%.AIM | search sys$pipe "Original Creation-Date","Index Patient","Index Measurement","Patient Name","Site","Time" Again, if the command consists of multiple words with spaces between (e.g. mcr ut:xxx.exe), then enclose the command in double-quotes. $ fda "mcr ut:uct_ext_header_display" dk0:[microct...]*.isq Grab more than one line using <code>pipe</code> and <code>search</code> command: $ pipe aix *.aim | search sys$pipe "dim", "pos", "name" Some common examples I use, without <code>fda</code>, are: pipe aix -l D0013580.AIM | search sys$pipe "Original file","Index Patient","Index Measurement","Patient Name","Site","Time" pipe ctheader D0013580.ISQ | search sys$pipe "Patient Name","Patient Index","Measurement Index","Creation Date","Site" [[Image:Redirect.jpg|15px]] [[#top|''Return to Contents'']] or [[Main_Page|''Return to Main Page'']]
Summary:
Please note that all contributions to bone.wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
BoneWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
associated-pages
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Main page
Documents
Recent changes
Help
Tools
What links here
Related changes
Page information