Linked Questions

14 votes
2 answers
34k views

Possible Duplicate: Integer ASCII value to character in BASH using printf I want to convert my integer number to ASCII character We can convert in java like this: int i = 97; //97 is "a"...
natrollus's user avatar
  • 331
0 votes
2 answers
208 views

I have a binary "crackme" which i want to try all ASCII characters as parameters, here's what i've done so far. #!/bin/bash ...
Titouan Pautier's user avatar
-1 votes
2 answers
725 views

I wanted to convert the numbers from 1 to 26 to Latin alpgabet {a-z}. 1 correspnds to "a", and 2 to "b" and 26 to "z" The following command only works for single digit numbers: echo "$i" | tr ...
Yacob's user avatar
  • 525
0 votes
0 answers
357 views

I'm missing some characters in my keyboard, so I'd like to know how to print a character in the Bash shell using the ASCII character id. For example, the character '{' has the ASCII code 123. Using C'...
Carla's user avatar
  • 3,430
-1 votes
2 answers
231 views

I can convert a text file to a list of ASCII decimals like this: $ echo "hello" | od -An -td1 -v -w1 104 101 108 108 111 10 What is the inverse operation? How can I convert the ...
user448810's user avatar
  • 17.9k
2 votes
3 answers
9k views

I need to generate a huge text. I'm using bash and I want to convert an integer number like 65 to a char like A. So I use random value between 0 and 255 (I need all the ASCII table), convert to a ...
Lefsler's user avatar
  • 1,768
0 votes
5 answers
5k views

I need to rename the following folders: d_001_d d_001_h d_005_d d_005_h d_007_d d_007_h In: d_a_d d_a_h d_b_d d_b_h d_c_d d_c_h So basically each code number correspond to a ...
user avatar
6 votes
3 answers
1k views

I am working on a Bash scripting project in which I need to delete one of two files if they have identical content. I should delete the one which comes last in an alphabetical sort and in the example ...
Astral Axiom's user avatar
1 vote
2 answers
3k views

I have a very simple following code which gets 4 bytes from stdin and prints them out byte by byte in hex format. // Code may be different but the point is to input any byte value 0 to 255 from stdin ...
Harry Cho's user avatar
  • 2,529
2 votes
5 answers
541 views

I'm working with an existing script which was written a bit messily. Setting up a loop with all of the spaghetti code could make a bigger headache than I want to deal with in the near term. Maybe when ...
theillien's user avatar
  • 1,436
0 votes
2 answers
2k views

I have a question related to bash operating on comma-separated value files (.csv) saved with spaces as the selected separator. As an example I'll put small .csv file here: A B C D 1 a b c ...
nemox007's user avatar
2 votes
2 answers
998 views

We have files with some chars represented by decimal(!) ascii values enclosed in cid(#) as e.g. (cid:104) for h. The string hello is thus represented as (cid:104)(cid:101)(cid:108)(cid:108)(cid:111). ...
wolfrevo's user avatar
  • 7,389
-2 votes
3 answers
744 views

I have tried several different search terms but have not found exactly what I want, I am sure there is already an answer for this so please point me to it if so. I would like to understand how to ...
art vanderlay's user avatar
0 votes
1 answer
299 views

I need to output a symbol using variable that contains code of that symbol. I already understood that in my code example bash thinks that i'm giving it a string. So according to specificator it ...
Roma's user avatar
  • 55