I try to use dos2unix command on unix machine but it gives me error like --
data_load]$ dos2unix a.csv a.csv
-bash: dos2unix: command not found
Then i use ---
data_load]$ yum search dos2unix
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
=================================================== N/S Matched: dos2unix ===================================================
dos2unix.x86_64 : Text file format converter
Is there any way that i can use it and i can not log in as ROOT
You could ask your sysadmin to install dos2unix
. Apparently he didn't install it yet.
You might compile it from its source code. If it has a configure
script (from autoconf) you might pass a --prefix=$HOME/soft
argument to that script and later add $HOME/soft/bin/
to your $PATH
.
Perhaps using tr(1) might be enough...