code ASCII for Caracter -->> '


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting code ASCII for Caracter -->> '
# 1  
Old 08-10-2006
code ASCII for Caracter -->> '

I'm a question:

the expresiion 'expr $a +1' use the caracter --> ' (is not shift+ ? !!!)

what is the code ascii for generate this caracter ??????

tank's
# 2  
Old 08-10-2006
# 3  
Old 08-10-2006
Perhaps you mean a backtick ` ASCII 96
The single tic or single quote ' is ASCII 39
# 4  
Old 08-10-2006
With bash and ksh, you can also use the syntax $() :
Code:
$(expr $a +1)   # same as `expr $a +1`
Timestamp=$(date +'%Y%m%d%H%M%S')

Jean-Pierre
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Creating data delimited by ASCII code 1

<Any suggestion how to create a file where the values are separated by ASCII code 1,with data extracted from a table using shell script The format is :/> <columnname1(binary1)columnvalue(binary1)columnname2(binary1)columnvalue(binary1)columnname3(binary1)columnvalue... 1st row/>... (6 Replies)
Discussion started by: dasun
6 Replies

2. Shell Programming and Scripting

Convert Hex to Ascii in a Ascii file

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

3. Shell Programming and Scripting

Bash - binary data to ascii code

Hello, With bash-script (ubunto server) I'm trying to read a binary file and, for each character, give back its ascii code (including extended ascii). For example: HEX => ASCII => PRINT f5 => 245 => õ 50 => 80 => P To load the binary file into a variable I tried in this way: ... (2 Replies)
Discussion started by: math4
2 Replies

4. Shell Programming and Scripting

sort -t option causing code to fail need ASCII character

Hello, When I run this UNIX code without the -t option it gives me the desired results. The code keeps the record with the greatest datetime based on the key columns. I sort it first then sort it again with the -u option, that's it. I need to have a variable to specify an ASCII character... (2 Replies)
Discussion started by: script_op2a
2 Replies

5. UNIX for Advanced & Expert Users

Conversion from ASCII to binary for physical simulation code in C/C++

Good evening, everybody A good math friend told me that it would be possible to shrink the size of the numerical datas I produce with a physical simulation code I programmed for my PhD. It usually writes at least 100 GB to complete the simulation, and it seems that it is too high. There are... (7 Replies)
Discussion started by: Cybertib
7 Replies

6. Shell Programming and Scripting

ascii code

I am getting a character with a "question mark inside a box". Does anybody know what ascii character i.e. what ascii number would it be. When I copy it in word I get it but when I copy it in notepad it only gives a box. I need to replace that inside my sed command in .SH file so I need to type it... (4 Replies)
Discussion started by: RubinPat
4 Replies

7. Shell Programming and Scripting

Delete a line last caracter

Hello dears, I have a CVS file in wich a have many lines. each line is ended by this two caracters ';;'. I want to get a new format of this file by deleting this caracters which unix shell script eg. of input file: a;b;c;d;; a;b;c;; a;b;; a;b;c;d;e;; That means each line lenght can... (2 Replies)
Discussion started by: yeclota
2 Replies

8. Shell Programming and Scripting

convert ascii values into ascii characters

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

9. Shell Programming and Scripting

Ascii to caracter

Hi, I'm trying to get from "a" to "b". So far, I've been able to get the ascii code for "a" and from there to get the code for "b". But, and this is were I'm stuck, I can't find how to show the symbol associated with the code I calculated. This is what I have right now test=a... (4 Replies)
Discussion started by: flame_eagle
4 Replies

10. Linux

source code ASCII to HEx

Is there are any source code in ANSI C to convert ASCII to Hexa decimal. (1 Reply)
Discussion started by: Thippeswamy
1 Replies
Login or Register to Ask a Question