Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

I wanted to output a string of all the ascii characters with the following command

for i in `seq 32 127`; do printf "%c" $i; done 

The output of the above command is:

33333334444444444555555555566666666667777777777.............. 

It's the first (from the left) digit of each number.

Looking through this site I came across the answer to my problem How to print all printable ASCII chars in CLI?How to print all printable ASCII chars in CLI?, however I still don't understand why my original snippet does not output the ascii characters as intended.

I wanted to output a string of all the ascii characters with the following command

for i in `seq 32 127`; do printf "%c" $i; done 

The output of the above command is:

33333334444444444555555555566666666667777777777.............. 

It's the first (from the left) digit of each number.

Looking through this site I came across the answer to my problem How to print all printable ASCII chars in CLI?, however I still don't understand why my original snippet does not output the ascii characters as intended.

I wanted to output a string of all the ascii characters with the following command

for i in `seq 32 127`; do printf "%c" $i; done 

The output of the above command is:

33333334444444444555555555566666666667777777777.............. 

It's the first (from the left) digit of each number.

Looking through this site I came across the answer to my problem How to print all printable ASCII chars in CLI?, however I still don't understand why my original snippet does not output the ascii characters as intended.

added 6 characters in body
Source Link
Rahul
  • 14k
  • 4
  • 46
  • 56

I wanted to output a string of all the ascii characters with the following command

for i in `seq 32 127`; do printf "%c" $i; done 

The output of the above command is:

33333334444444444555555555566666666667777777777..............

33333334444444444555555555566666666667777777777.............. 

It's the first (from the left) digit of each number.

Looking through this site I came across the answer to my problem How to print all printable ASCII chars in CLI?, however I still don't understand why my original snippet does not output the ascii characters as intended.

I wanted to output a string of all the ascii characters with the following command

for i in `seq 32 127`; do printf "%c" $i; done 

The output of the above command is:

33333334444444444555555555566666666667777777777..............

It's the first (from the left) digit of each number.

Looking through this site I came across the answer to my problem How to print all printable ASCII chars in CLI?, however I still don't understand why my original snippet does not output the ascii characters as intended.

I wanted to output a string of all the ascii characters with the following command

for i in `seq 32 127`; do printf "%c" $i; done 

The output of the above command is:

33333334444444444555555555566666666667777777777.............. 

It's the first (from the left) digit of each number.

Looking through this site I came across the answer to my problem How to print all printable ASCII chars in CLI?, however I still don't understand why my original snippet does not output the ascii characters as intended.

Tweeted twitter.com/#!/StackUnix/status/231708651100962816
Source Link
Ifthikhan
  • 365
  • 2
  • 3
  • 5

Printing decimal to ascii character, my command does not output as intended

I wanted to output a string of all the ascii characters with the following command

for i in `seq 32 127`; do printf "%c" $i; done 

The output of the above command is:

33333334444444444555555555566666666667777777777..............

It's the first (from the left) digit of each number.

Looking through this site I came across the answer to my problem How to print all printable ASCII chars in CLI?, however I still don't understand why my original snippet does not output the ascii characters as intended.