dos2unix all files in current directory using find -exec
$find . -exec dos2unix {} \Sometimes we copy some source code from windows to Linux and try to compile them. The result is oftenvery unexpected and likely to have no clue whats the wrong! Most of the time it is due to nothing but the file format difference in Linux and windows.
dos2unix comes from [...]
Change file name case to lower in linux
$for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
I am working on a project using MainSoft’s MainWin. It converts and compiles vc6 projects in linux. MainWin provides a tool calls ‘mwgenmake’ which creates a makefile from the project file. Sometimes, it is required to have all the filename in lower [...]
dos2unix all files in current directory using find -exec
$find . -exec dos2unix {} \Sometimes we copy some source code from windows to Linux and try to compile them. The result is oftenvery unexpected and likely to have no clue whats the wrong! Most of the time it is due to nothing but the file format difference in Linux and windows.
dos2unix comes from [...]
Change file name case to lower in linux
$for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done
I am working on a project using MainSoft’s MainWin. It converts and compiles vc6 projects in linux. MainWin provides a tool calls ‘mwgenmake’ which creates a makefile from the project file. Sometimes, it is required to have all the filename in lower [...]