rn many of them! ;-)
--
View this message in context:
http://www.nabble.com/Extra-spaces-in-text-files-in-cygwin-tp17764646p17784738.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports:
gmarsha11 wrote on 11 June 2008 16:14:
> The files are being created by HP Data Protector (backup management
> software). After I changed the file, I realized that the next time DP
> modifies it, it will change the encoding. DP can read the file when it is
> ANSI encoded, but will always write i
So pipe the files through iconv to something your munging tools can
deal with and then through iconv again to change it back to whatever
DP is using...
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: h
On 2008-06-11, gmarsha11 wrote:
> Gary Johnson wrote:
> >
> > On 2008-06-10, gmarsha11 wrote:
> >>
> >> Does this mean it's necessary to change the encoding for any files I
> >> might
> >> need to cat, grep awk, etc.?
> >
> > I'm no expert on any of this, but as far as I know, all traditional
>
ange the encoding it uses.
--
View this message in context:
http://www.nabble.com/Extra-spaces-in-text-files-in-cygwin-tp17764646p17780262.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http:/
On Tue, Jun 10, 2008 at 9:52 PM, René Berber <[EMAIL PROTECTED]> wrote:
> "Document.txt" [converted][dos] 1L, 20C
>
> The "converted" means it wasn't regular text
Only for a very limited definition of "regular text". All "converted"
actually means that the file was read using a different encoding
René Berber wrote:
> If you like to look at what it really is, try:
>
> $ od -tx2z Document.txt
> 000 feff 0054 0068 0069 0073 0020 0069 0073 >..T.h.i.s. .i.s.<
> 020 0020 0061 0062 0063 0020 0066 0069 006c > .a.b.c. .f.i.l.<
> 040 0065 000d 000a >e.<
>
René Berber wrote:
Oops!
$ od -tx2z Document.txt
000 feff 0054 0068 0069 0073 0020 0069 0073 >..T.h.i.s. .i.s.<
020 0020 0061 0062 0063 0020 0066 0069 006c > .a.b.c. .f.i.l.<
040 0065 000d 000a >e.<
046
So your spaces are really null bytes (some
gmarsha11 wrote:
I'm not sure about the file's encoding. How do I tell?
If you have "file" installed, its easy:
$ file Document.txt
Document.txt: Unicode text, UTF-16, little-endian
When I create a new file with vi, I can read the file with no problem. The
output is normal.
Look at the
On 2008-06-10, gmarsha11 wrote:
> Ok, have saved the file with Windows notepad as ANSI, Unicode, Unicode big
> endian, and UTF-8.
>
> Both Unicode options give me the output with the extra spaces. ANSI and
> UTF-8 allow me to see the files as I would expect to see them.
>
> Does this mean it's
r any files I might
need to cat, grep awk, etc.?
--
View this message in context:
http://www.nabble.com/Extra-spaces-in-text-files-in-cygwin-tp17764646p17767635.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Pr
On 2008-06-10, gmarsha11 wrote:
> The backticks contain the actual command that I run.
>
>
> I'm not sure about the file's encoding. How do I tell?
>
> When I create a new file with vi, I can read the file with no problem. The
> output is normal.
>
> These particular text files that I am work
tector. I can easily parse and manipulate these files on HPUX servers,
but the Windows servers lack that functionality. I thought Cygwin would
help with this.
How do I tell what the file's encoding is?
--
View this message in context:
http://www.nabble.com/Extra-spaces-in-text-
; Brian
>>
>> --
>> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>> Problem reports: http://cygwin.com/problems.html
>> Documentation: http://cygwin.com/docs.html
>> FAQ: http://cygwin.com/faq/
>>
>>
-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
>
>
--
View this message in context:
http://www.nabble.com/Extra-spaces-in-text-files-in-cygwin-tp17764
gmarsha11 wrote:
> then, `cat abc.txt` returns
>
> T h i s i s a b c f i l e
>
> Anyone know what might cause this?
What do you mean by "[backtick] returns"? Can you paste a full example
testcase? What is the file's encoding? If it's a unicode file with a
UTF-16 encoding then you would ex
gmarsha11 wrote:
I am a brand new user of cygwin and I'm already having troubles. Whenever I
grep or cat or otherwise dump the contents of a text file to stdout, there
are extra spaces between all characters. For instance, if file abc.txt
contains:
This is abc file
then, `cat abc.txt` return
s a b c f i l e
Anyone know what might cause this?
--
View this message in context:
http://www.nabble.com/Extra-spaces-in-text-files-in-cygwin-tp17764646p17764646.html
Sent from the Cygwin list mailing list archive at Nabble.com.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-s
18 matches
Mail list logo