[MINC-users] Removing carriage returns from Display tag files (made on a pc)
Paul GRAVEL
pgravel at bic.mni.mcgill.ca
Wed Aug 24 15:24:06 EDT 2005
Hi Dylan,
I actually got this one from JF (thanks Jean-Francois!),
Try:
tr -d '\015' < Original_tag_file > New_tag_file
or
if you would like to replace the <cr> by a new line, you can try:
tr '\015' '\012' < Original_tag_file > New_tag_file
Good luck,
Paul
On Wed, 24 Aug 2005, Dylan David Wagner wrote:
> Hey,
>
> I've been using the Display build for windows to make some tag
> files only to notice that tagtominc and the unix version of display
> reject the tag file ie: input_tag_points() invalid header in file.
>
> Comparing tag files made with the unix display and that made with
> windows the only difference I see is that the windows tag file seems to
> have carriage returns (or line feeds?) at the end of every line.
>
> I'm assuming this pc<->unix issue is common enough, anyone have a
> script or hack to fix this?
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>
More information about the MINC-users
mailing list