I am sshing from iTerm2 to an Ubuntu machine. I am using ns3 through waf and redirecting my output to a log file using the below command:
mpirun -n 16 ./waf --run test > log.out 2>&1
The log file that gets generated has output like below:
^[[32mWaf: Entering directory `/home/workspace/ns-allinone-3.25/ns-3.25/build/optimized'^[[0m
^[[32mWaf: Entering directory `/home/workspace/ns-allinone-3.25/ns-3.25/build/optimized'^[[0m
I am unable to understand why the extra characters are being added in the file.
When I use less
to view the contents, I see the output perfectly fine.
What should I do to not see the extra in vim
.