I often use shell script to do some work.
But, I find some problem in my slackware system.
For examble, I have 3 files in cureunt directory.
Code:
$ ls
$ file1 file2 file3
But, if I echo the output in a file, like:
When I vi the file, I will find the file name is like this:
Code:
$ vi file
^[[00m^[[00mfile1^[[00m
^[[00m^[[00mfile2^[[00m
^[[00m^[[00mfile3^[[00m
^[[m
~
So, I can't use this in my shell script.
How to solve this problem?