Search Results

Search: Posts Made By: ubbeauty
13,048
Posted By ubbeauty
Detect lines beginning with double-byte characters (Japanese) and delete [solved]
Thanks guys, that worked great! I ran "diff" and the outputs of both the awk and perl commands are identical for my working file.

I'm new at this - but I used the command like this:

awk...
13,048
Posted By ubbeauty
I am the one who wrote the file, so I know where...
I am the one who wrote the file, so I know where the character sets came from.

Not sure I understand your question though. The non-Japanese characters are all single-byte characters (I am using...
13,048
Posted By ubbeauty
Thanks daptal - but that's not what I need. I...
Thanks daptal - but that's not what I need. I need exactly as stated - only detecting lines with a double byte character only in the beginning position.
13,048
Posted By ubbeauty
Detect lines beginning with double-byte characters (Japanese) and delete
Greetings,

I want to use a script (preferably awk) which determines if the first character in a line is double-byte (as in Japanese or Chinese) and deletes it.

For example:
(in the above...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 02:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy