A ASCII character is represented by a single byte. A unicode character is represented by more than one byte. It all depends what you need this information for. Is it possible that you will have international characters in your file?
Maybe an example using the unicode character ä makes it more clear to you:
I would really like to have a script that will accept the key press from the user with out having to press the enter key afterwards.
i.e.
echo "Press Y to print \c"
read YesNo
At this point the user has to press the enter key to continue. Is there a way to accept the key press from the... (3 Replies)
Hello,
I have a file where I am supposed to convert all the single i characters to uppercase, but when I try, it converts all the i's inside of words to uppercase as well.
I tried doing:
cat filename | sed 's/i/I/g'
but that obviously does not work.
Any help would be greatly... (6 Replies)
Hi all,
I have what I would have thought was a very simple problem but I can' find an elegant solution.
I have a file which has a single value you in it, say 194. All I want my perl script to do is open the file, read the value and assign that value to a variable.
I've done stuff like... (1 Reply)
Hello,
I need to replace the comma to something else between the single quote:
1aaa,bbb,'cc,cc','ddd',1
2aaa,bbb,'ccc','d,d',0
to
1aaa,bbb,'cc<comma>cc','ddd',1
2aaa,bbb,'ccc','d<comma>d',0
Can someone help? Thanks. (2 Replies)
Hi,
I'm sorry if this has already been posted somewhere but I can't seem to find it on the forums (or anywhere on google :( )
I am writing a script where a user must enter a single character to perform an action.
For example, Press Q to Quit or R to Refresh
Basically I am stuggling... (5 Replies)
This reads single keystrokes and produces an output:
#! /bin/bash
while : ; do
read -s -n 1 >/dev/null 2>&1
echo ${REPLY}
done | awk '{print}'
This second one don't. Even though these examples make no sense; the real code is more complicated. Who knows what the problem is... (2 Replies)
Hi Guys,
Happy New Year to you all!
I have a requirement to read an embedded new-line using KSH's read builtin.
Here is what I am trying to do:
run_sql "select guestid, address, email from guest" | while read id addr email
do
## Biz logic goes here
done
I can take care of any... (6 Replies)
How to remove characters enclosed in single quotes?
My data is something like this
(03/22/2011 08:17:26.650) : ( -> '1' -> '1-1-3' -> '6' -> '1' -> 'SALMOR58BB4' aaaaa bbbbbb ccccc ((dddd))
I want the output to be
(03/22/2011 08:17:26.650) : ( -> -> -> -> -> aaaaa... (2 Replies)
Hi,
I have file in which fields are pipe (|) separated and the record separator is new line (\n). But sometime I am getting a field value which is spread across multiple line. Basically I am getting a file from another system in the below format and needs to process the file and load data into a... (3 Replies)
Hi all.
I’ve 2 inputs here and would like to produce it in single ouput. I’ve drafted simple shell script but not sure how to put all this together. The final output should be “GROUP-XYZ” instead of “TEST”
Please advise.
INPUT1
GROUP-XYZ
INPUT2
type8code0@box:~/dbedit$ cat... (8 Replies)
Discussion started by: type8code0
8 Replies
LEARN ABOUT SUSE
getunimap
GETUNIMAP(8) Linux GETUNIMAP(8)NAME
getunimap - dump the unicode map for the current console to stdout
SYNOPSIS
getunimap [ -s ] [ -C console ]
DESCRIPTION
The getunimap program is old and obsolete. It is now part of setfont (1).
The getunimap program outputs the unicode map (also called a "Screen Font Map") for the current console to standard output.
The -C option may be used with Linux 2.6.1 and later to get the map for a console different from the current one. Its argument is a path-
name.
The output of getunimap is of the form
0xAA U+1234 # comment
where 0xAA is the font character code and U+1234 is a unicode character, that if displayed, will be displayed using glyph 0xAA in the font.
Many unicode characters may be mapped to the same glyph.
the Hash symbol # is used as a comment delimiter; characters after a hash sign (to the end of the line) are comments.
The -s option will sort and merge elements, sorting on font character. Hence, it will produce output of the form:
0x22 U+1234 U+5678 U+3456
0x23 U+0023
etc., listing the multiple unicode characters that map to a font glyph.
The output of getunimap is of the form accepted by setfont and psfaddtable
SEE ALSO psfaddtable(1), setfont(1).
Console Tools 2004-01-01 GETUNIMAP(8)