* Getting ls results in text file - Charset issue
@ 2004-12-21 22:25 ACario
2004-12-22 3:55 ` qwms-avib
2004-12-22 4:05 ` joy merwin monteiro
0 siblings, 2 replies; 5+ messages in thread
From: ACario @ 2004-12-21 22:25 UTC (permalink / raw)
To: linux-newbie
Hi,
I'm running following command in a console:
ls > out.csv
Then I open the file "out.cvs" in vi and here is what I get, whith all
these strange characters (below is a copy/paste from vi screen):
^[[00m^[[01;34mcxoffice^[[00m/
^[[01;34mDesktop^[[00m/
^[[01;34mGNUstep^[[00m/
^[[01;34mkde^[[00m/
^[[01;34mLogs^[[00m/
^[[01;34mNntp^[[00m/
^[[00mNOTEBOOK.DBF^[[00m
^[[00mout.csv^[[00m
^[[01;34mSw^[[00m/
^[[01;34mSwWork^[[00m/
^[[01;34mtmp^[[00m/
^[[01;34mWorkspace^[[00m/
My config: Mandrakelinux 10.1, bash
My question: how can I get the results of my "ls" command in a plain
text file with ASCII or ISO-8891 character set instead of all this
unreadable characters?
Thanks
ACario
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Getting ls results in text file - Charset issue
2004-12-21 22:25 Getting ls results in text file - Charset issue ACario
@ 2004-12-22 3:55 ` qwms-avib
2004-12-22 11:07 ` ACario
2004-12-22 4:05 ` joy merwin monteiro
1 sibling, 1 reply; 5+ messages in thread
From: qwms-avib @ 2004-12-22 3:55 UTC (permalink / raw)
To: dxxa-ytk9; +Cc: Linux-Newbie
ACario wrote:
>
> I'm running following command in a console:
> ls > out.csv
> Then I open the file "out.cvs" in vi and here is what I get
> ^[[00m^[[01;34mcxoffice^[[00m/
> ^[[01;34mDesktop^[[00m/
> ^[[01;34mGNUstep^[[00m/
> ^[[01;34mkde^[[00m/
> ^[[01;34mLogs^[[00m/
It appears your ls is aliased to show colors.
You could unalias it or try the following:
-----------------
/bin/ls > out.csv
-----------------
Cheers,
Steven
____________________________
http://www.basiclinux.com.ru
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Getting ls results in text file - Charset issue
2004-12-21 22:25 Getting ls results in text file - Charset issue ACario
2004-12-22 3:55 ` qwms-avib
@ 2004-12-22 4:05 ` joy merwin monteiro
2004-12-22 4:20 ` qwms-avib
1 sibling, 1 reply; 5+ messages in thread
From: joy merwin monteiro @ 2004-12-22 4:05 UTC (permalink / raw)
To: ACario; +Cc: linux-newbie
Hi,
don't ask me why, but these characters look more
like ANSI escape sequences (everything prefixed with
an ESC (^[ ) ) .looks like your console is giving you the
raw data it receives instead of just the text......
regards,
Joy.M.Monteiro
On Tue, 21 Dec 2004 23:25:42 +0100, ACario <acario@wanadoo.fr> wrote:
> Hi,
>
> I'm running following command in a console:
>
> ls > out.csv
>
> Then I open the file "out.cvs" in vi and here is what I get, whith all
> these strange characters (below is a copy/paste from vi screen):
>
> ^[[00m^[[01;34mcxoffice^[[00m/
> ^[[01;34mDesktop^[[00m/
> ^[[01;34mGNUstep^[[00m/
> ^[[01;34mkde^[[00m/
> ^[[01;34mLogs^[[00m/
> ^[[01;34mNntp^[[00m/
> ^[[00mNOTEBOOK.DBF^[[00m
> ^[[00mout.csv^[[00m
> ^[[01;34mSw^[[00m/
> ^[[01;34mSwWork^[[00m/
> ^[[01;34mtmp^[[00m/
> ^[[01;34mWorkspace^[[00m/
>
> My config: Mandrakelinux 10.1, bash
> My question: how can I get the results of my "ls" command in a plain
> text file with ASCII or ISO-8891 character set instead of all this
> unreadable characters?
>
> Thanks
>
> ACario
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.linux-learn.org/faqs
>
--
people always turn away,
from the eyes of a stranger...
Afraid to know
what lies behind the stare.......
--QueensRyche
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Getting ls results in text file - Charset issue
2004-12-22 4:05 ` joy merwin monteiro
@ 2004-12-22 4:20 ` qwms-avib
0 siblings, 0 replies; 5+ messages in thread
From: qwms-avib @ 2004-12-22 4:20 UTC (permalink / raw)
To: jxhh-cw74; +Cc: Linux-Newbie
joy merwin monteiro wrote:
>
> these characters look more like ANSI escape sequences
> (everything prefixed with an ESC (^[ ) )
>
> > ^[[00m^[[01;34mcxoffice^[[00m/
> > ^[[01;34mDesktop^[[00m/
> > ^[[01;34mGNUstep^[[00m/
> > ^[[01;34mkde^[[00m/
> > ^[[01;34mLogs^[[00m/
They are color codes. 34m = blue. 00m = off.
Cheers,
Steven
____________________________
http://www.basiclinux.com.ru
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Getting ls results in text file - Charset issue
2004-12-22 3:55 ` qwms-avib
@ 2004-12-22 11:07 ` ACario
0 siblings, 0 replies; 5+ messages in thread
From: ACario @ 2004-12-22 11:07 UTC (permalink / raw)
To: linux-newbie
qwms-avib@dea.spamcon.org wrote:
> ACario wrote:
>
>>I'm running following command in a console:
>>ls > out.csv
>>Then I open the file "out.cvs" in vi and here is what I get
>>^[[00m^[[01;34mcxoffice^[[00m/
>>^[[01;34mDesktop^[[00m/
>>^[[01;34mGNUstep^[[00m/
>>^[[01;34mkde^[[00m/
>>^[[01;34mLogs^[[00m/
>
>
> It appears your ls is aliased to show colors.
> You could unalias it or try the following:
> -----------------
> /bin/ls > out.csv
> -----------------
Exaclty! Thanks for the info.
Cheers
ACario
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-12-22 11:07 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-21 22:25 Getting ls results in text file - Charset issue ACario
2004-12-22 3:55 ` qwms-avib
2004-12-22 11:07 ` ACario
2004-12-22 4:05 ` joy merwin monteiro
2004-12-22 4:20 ` qwms-avib
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox