All of lore.kernel.org
 help / color / mirror / Atom feed
From: ACario <acario@wanadoo.fr>
To: linux-newbie@vger.kernel.org
Subject: Getting ls results in text file - Charset issue
Date: Tue, 21 Dec 2004 23:25:42 +0100	[thread overview]
Message-ID: <cqa80n$6q6$1@sea.gmane.org> (raw)

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

             reply	other threads:[~2004-12-21 22:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-21 22:25 ACario [this message]
2004-12-22  3:55 ` Getting ls results in text file - Charset issue qwms-avib
2004-12-22 11:07   ` ACario
2004-12-22  4:05 ` joy merwin monteiro
2004-12-22  4:20   ` qwms-avib

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='cqa80n$6q6$1@sea.gmane.org' \
    --to=acario@wanadoo.fr \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.