The "^M" appears at end of every line in a ".c" file in linux.
A ".c" file was opened in windows and then, transferred to a linux system, where a "^M" appears at the end of every line. This gives a lot of problem in compiling or using the file in linux.
I think, the solution to this is to use the "dos2unix" utility/command in linux.
]$ dos2unix myFile.c
The whole file is converted and written back into to original one!!!
check out ----> ]$ man dos2unix
for more details...
---------------------------------------------------------------------------------------------------------------------------------------
A ".c" file was opened in windows and then, transferred to a linux system, where a "^M" appears at the end of every line. This gives a lot of problem in compiling or using the file in linux.
I think, the solution to this is to use the "dos2unix" utility/command in linux.
]$ dos2unix myFile.c
The whole file is converted and written back into to original one!!!
check out ----> ]$ man dos2unix
for more details...
---------------------------------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment