08-10-2005
Hex characters of ascii file
Sorry, I probably want to see if the ascii file has got carriage returns as well. OD command worked for hexadecimal...thanks.
10 More Discussions You Might Find Interesting
1. Programming
Hi everyone!
I was wondering if anyone knows how to change hex code back into ascii.
when i process a form:
" / " turn to " %2F "
" @ " turns to " %40 "
" ' " turns to " %27 "
" ( " turns to " %28 "
" ) " turns to " %29 "
this is my code so far: order.txt
thanks,
primal
p.s.... (1 Reply)
Discussion started by: primal
1 Replies
2. UNIX for Dummies Questions & Answers
How will I display on screen a UNIX ascii file with its HEX equivalent. I want to check whether 0D 0A is coming at the end of the file which I am generating from UNIX. (1 Reply)
Discussion started by: augustinep
1 Replies
3. UNIX for Dummies Questions & Answers
Is there a command to convert hex characters into their respective ascii values? (5 Replies)
Discussion started by: dangral
5 Replies
4. Programming
anyone knows any formulae or flow chart or procedure to convert
ASCII characters into HEXA values... (4 Replies)
Discussion started by: Thippeswamy
4 Replies
5. Shell Programming and Scripting
Hi gurus,
I have a file in unix with ascii values. I need to convert all the ascii values in the file to ascii characters. File contains nearly 20000 records with ascii values. (10 Replies)
Discussion started by: sandeeppvk
10 Replies
6. Programming
Hello guys,
i want to convert a text file to hex and have written this code :
int main(int argc, char **argv)
{
ifstream file;
string fileName = "CODEZ";
file.open(fileName.c_str()); // oeffen im Text-Modus
if(file)
{... (5 Replies)
Discussion started by: Kingbruce
5 Replies
7. Shell Programming and Scripting
I am having a file(1234.txt) downloaded from windows server (in Ascii format).However when i ftp this file to Unix server and try to work with it..i am unable to do anything.When i try to open the file using vi editor the file opens in the following format ...
@
@
@
@
@
@
@
@... (4 Replies)
Discussion started by: appu2176
4 Replies
8. Shell Programming and Scripting
Hi,
I have many text files which contain some non-ASCII characters. I attach the screenshots of one of the files for people to have a look at. The issue is even after issuing the non-ASCII removal commands one of the characters does not go away. The character that goes away is the black one with a... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
9. HP-UX
Hi guys,
First off, i'm a complete noob to UNIX and LINUX so apologies if I don't understand the basics!
I have a file which contains a hex value of '0D' at the end of each line when I look at it in a hex viewer.
I need to change it so it contains a hex value of '0D0A0A'
I thought... (10 Replies)
Discussion started by: AndyBSG
10 Replies
10. Shell Programming and Scripting
Hi All,
I have an ascii file in which few columns are having hex values which i need to convert into ascii. Kindly suggest me what command can be used in unix shell scripting?
Thanks in Advance (2 Replies)
Discussion started by: HemaV
2 Replies
LEARN ABOUT REDHAT
showkey
SHOWKEY(1) General Commands Manual SHOWKEY(1)
NAME
showkey - examine the codes sent by the keyboard
SYNOPSIS
showkey [-h|--help] [-a|--ascii] [-s|--scancodes] [-k|--keycodes]
DESCRIPTION
showkey prints to standard output either the scan codes or the keycode or the `ascii' code of each key pressed. In the first two modes the
program runs until 10 seconds have elapsed since the last key press or release event, or until it receives a suitable signal, like SIGTERM,
from another process. In `ascii' mode the program terminates when the user types ^D.
When in scancode dump mode, showkey prints in hexadecimal format each byte received from the keyboard to the standard output. A new line is
printed when an interval of about 0.1 seconds occurs between the bytes received, or when the internal receive buffer fills up. This can be
used to determine roughly, what byte sequences the keyboard sends at once on a given key press. The scan code dumping mode is primarily
intended for debugging the keyboard driver or other low level interfaces. As such it shouldn't be of much interest to the regular end-user.
However, some modern keyboards have keys or buttons that produce scancodes to which the kernel does not associate a keycode, and, after
finding out what these are, the user can assign keycodes with setkeycodes(8).
When in the default keycode dump mode, showkey prints to the standard output the keycode number or each key pressed or released. The kind
of the event, press or release, is also reported. Keycodes are numbers assigned by the kernel to each individual physical key. Every key
has always only one associated keycode number, whether the keyboard sends single or multiple scan codes when pressing it. Using showkey in
this mode, you can find out what numbers to use in your personalized keymap files.
When in `ascii' dump mode, showkey prints to the standard output the decimal, octal, and hexadecimal value(s) of the key pressed, according
to he present keymap.
OPTIONS
-h --help
showkey prints to the standard error output its version number, a compile option and a short usage message, then exits.
-s --scancodes
Starts showkey in scan code dump mode.
-k --keycodes
Starts showkey in keycode dump mode. This is the default, when no command line options are present.
-a --ascii
Starts showkey in `ascii' dump mode.
SEE ALSO
loadkeys(1), dumpkeys(1), keymaps(5), setkeycodes(8)
1 Feb 1998 SHOWKEY(1)