-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignoring Derived and Defaults #213
Comments
I am open to other people's opinion on this. I personally use the ignore derived
|
The usual way to add an argument to a utility by default is with an alias in your shell startup script:
As an additional benefit, this way doesn't impact scripts, from the bash manpage:
However, most unixlike utilities that people are expected to use aliases on also have the ability to override such alias options (if you specify "-i y -i n", does it go back to outputting the derived stuff?). Also, that script is overly complicated, and not safe for spaces in file names, if I wanted to do this as a script I would do:
This should work in sh also. I would not recommend writing ordinary scripts in pure sh, it is very old, missing useful syntax of newer shells, and bash is available for virtually any OS anyway (and is the default on most). |
Thanks Tim, that does seem like an elegant solution to help Noah (and others out). Therefore, I will close this issue. |
Hello,
Just to start, thank you for this great app. When converting dicom data I get all the derived scans which causes a massive clutter. I know I can use the '-i' flag to ignore those many derivatives but I would like to set it as a default setting mostly in the case to use for apps that are a wrapper for dcm2niix. Right now I'm running dcm2niix latest stable version v1.0.20180622. Any help would greatly appreciated. Thank you!
The text was updated successfully, but these errors were encountered: