• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Merging strings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Merging strings?


  • Subject: Re: Merging strings?
  • From: Markus Hitter <email@hidden>
  • Date: Fri, 2 Sep 2005 14:48:13 +0200


Am 02.09.2005 um 12:43 schrieb Alexey Proskuryakov:

My quick test showed that cat | sort | uniq filtered out
all characters with zero first bytes, and 0430003100320033000a (hex bytes)
became 0430. This happened regardless of BOM presence.


It would be interesting to know what could make cat change its operation
that much.

It's the "uniq" command[1] - my own test was _too_ quick. :-{

The OP's rsrc files aren't UTF-16, so he's in luck and can convert later.


Markus


[1]: Nobile:~$ cat /tmp/Localizable.strings | sort | uniq >/tmp/test.strings Nobile:~$ hexdump /tmp/test.strings | head -3 0000000 feff 0000002 Nobile:~$ cat /tmp/Localizable.strings | sort >/tmp/test.strings Nobile:~$ hexdump /tmp/test.strings | head -3 0000000 000a 000a 000a 002f 002a 0020 006b 0065 0000010 0079 0073 0020 002a 002f 000a 002f 002a 0000020 0020 0076 0061 006c 0075 0065 0073 0020

- - - - - - - - - - - - - - - - - - -
Dipl. Ing. Markus Hitter
http://www.jump-ing.de/




_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Merging strings?
      • From: Steve Mills <email@hidden>
    • Re: Merging strings?
      • From: Alexey Proskuryakov <email@hidden>
References: 
 >Re: Merging strings? (From: Alexey Proskuryakov <email@hidden>)

  • Prev by Date: Re: Merging strings?
  • Next by Date: Re: Merging strings?
  • Previous by thread: Re: Merging strings?
  • Next by thread: Re: Merging strings?
  • Index(es):
    • Date
    • Thread