hi
I want to suppress the output of dos2unix command in my shell script. I'm using follwing command in my script
dos2unix somefile >/dev/null
But it's still showing output while executing the script.Please help me to sort this out
Thanks
hi
I want to suppress the output of dos2unix command in my shell script. I'm using follwing command in my script
dos2unix somefile >/dev/null
But it's still showing output while executing the script.Please help me to sort this out
Thanks
I can't reproduce this...
$ dos2unix data
ISD=977155185403901+DIE CAST+DIE CAST 055555+01087+001008+SPR 08+08+004+Y'
ISD=977155185403901+DIE CAST+DIE CAST?+55555+01087+001008+SPR 08+08+004+Y'
$ dos2unix data > /dev/null
$
Maybe something else is causing the output, not dos2unix. But if you discard the output from dos2unix, why run it at all? It will have no effect except to waste time.
id it is an error then
use
2>/dev/null
hope u want to see only errors not exectued onces right???
try this
dos2uix folder/*.* > text
folder which contains files need for conversion.
this should work.
Hello friends,
Thanks for your reply.
I tried for dos2uix folder/*.* > text, 2>/dev/null, but none of them worked
Actually it's not error. I need to avoid output like.
dos2unix: converting file hosting-network-and-datacenter.html to UNIX format ...
My code is given below