[Freesurfer] Name external disk not recognized
Dear Freesurfers, Not sure if my question is at the right place here but I'll give it a try. I have a memory disk with white spaces in the name: Seagate Expansion Drive. There is no simple way to rename the disk on my Linux machine. In Unix shell scripting problems with finding the directory can be prevented by putting the whole name in quotation marks, e.g., f1=”Seagate Expansion Drive” and then after that calling f1 with quotation marks (e.g., cp “$f1”/file.xxx /destination/ ). However, if I want to use bbregister then it does not recognize the quotation marks. For example, behind the flag --reg /”$f1”/fsreg.dat Freesurfer tells me that it does not recognize “Expansion” as a flag (probably because it still reads the white space in the name). I was wondering if there is any simple solution around or if the only option seems to try to rename the disk. Best, Ruthger ___ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
Re: [Freesurfer] Name external disk not recognized
can you make a symbolic link (ln -s) to the disk and then reference the symlink instead of the direct path? On 10/30/14 10:33 AM, Righart, Ruthger wrote: Dear Freesurfers, Not sure if my question is at the right place here but I'll give it a try. I have a memory disk with white spaces in the name: Seagate Expansion Drive. There is no simple way to rename the disk on my Linux machine. In Unix shell scripting problems with finding the directory can be prevented by putting the whole name in quotation marks, e.g., f1=”Seagate Expansion Drive” and then after that calling f1 with quotation marks (e.g., cp “$f1”/file.xxx /destination/ ). However, if I want to use bbregister then it does not recognize the quotation marks. For example, behind the flag --reg /”$f1”/fsreg.dat Freesurfer tells me that it does not recognize “Expansion” as a flag (probably because it still reads the white space in the name). I was wondering if there is any simple solution around or if the only option seems to try to rename the disk. Best, Ruthger ___ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer ___ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
Re: [Freesurfer] Name external disk not recognized
Cheap solution, use backticks to evaluate the string, e.g. --reg /`echo $f1`/fsreg.dat On 30.10.2014 15:33, Righart, Ruthger wrote: Dear Freesurfers, Not sure if my question is at the right place here but I'll give it a try. I have a memory disk with white spaces in the name: Seagate Expansion Drive. There is no simple way to rename the disk on my Linux machine. In Unix shell scripting problems with finding the directory can be prevented by putting the whole name in quotation marks, e.g., f1=Seagate Expansion Drive and then after that calling f1 with quotation marks (e.g., cp $f1/file.xxx /destination/ ). However, if I want to use bbregister then it does not recognize the quotation marks. For example, behind the flag --reg /$f1/fsreg.dat Freesurfer tells me that it does not recognize Expansion as a flag (probably because it still reads the white space in the name). I was wondering if there is any simple solution around or if the only option seems to try to rename the disk. Best, Ruthger ___ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer [1] The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline [2] . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. Links: -- [1] https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer [2] http://www.partners.org/complianceline ___ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail.
Re: [Freesurfer] Name external disk not recognized
Yes, works!!! Thank you Ruthger Righart Le 2014-10-30 15:36, Douglas Greve a écrit : can you make a symbolic link (ln -s) to the disk and then reference the symlink instead of the direct path? On 10/30/14 10:33 AM, Righart, Ruthger wrote: Dear Freesurfers, Not sure if my question is at the right place here but I'll give it a try. I have a memory disk with white spaces in the name: Seagate Expansion Drive. There is no simple way to rename the disk on my Linux machine. In Unix shell scripting problems with finding the directory can be prevented by putting the whole name in quotation marks, e.g., f1=”Seagate Expansion Drive” and then after that calling f1 with quotation marks (e.g., cp “$f1”/file.xxx /destination/ ). However, if I want to use bbregister then it does not recognize the quotation marks. For example, behind the flag --reg /”$f1”/fsreg.dat Freesurfer tells me that it does not recognize “Expansion” as a flag (probably because it still reads the white space in the name). I was wondering if there is any simple solution around or if the only option seems to try to rename the disk. Best, Ruthger ___ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer ___ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. ___ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer