Skip to content
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

Scripts: Greedy extension stripping removes parts of filenames #634

Closed
gdevenyi opened this issue Sep 4, 2018 · 2 comments
Closed

Scripts: Greedy extension stripping removes parts of filenames #634

gdevenyi opened this issue Sep 4, 2018 · 2 comments

Comments

@gdevenyi
Copy link
Contributor

gdevenyi commented Sep 4, 2018

Greedy extension stripping such as https://github.com/ANTsX/ANTs/blob/master/Scripts/antsMultivariateTemplateConstruction2.sh#L1330

Will remove parts of files that have "." in them. Such as

Subject01.extracted.nii.gz
will be stripped to
Subject01
instead of
Subject01.extracted

sed/awk with a list of possible extensions to strip or splitting using IFS or other methods would avoid this.

@coretemp
Copy link

coretemp commented Nov 1, 2018

You can better open an issue to replace the whole script. It should not be used by people.

@gdevenyi
Copy link
Contributor Author

gdevenyi commented Nov 5, 2018

Closed by #658

@gdevenyi gdevenyi closed this as completed Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants