| | |
Echo command ASCII characters-batch scripting
Please support our Shell Scripting advertiser: Programming Forums - DaniWeb Sister Site
![]() |
If your echo accept the -e it would be like:
Otherwise use printf
bash Syntax (Toggle Plain Text)
echo -e "\101"
bash Syntax (Toggle Plain Text)
printf "%b\n" "\0101"
Last edited by Aia; Jan 10th, 2009 at 1:53 pm.
•
•
Join Date: Dec 2008
Posts: 49
Reputation:
Solved Threads: 0
Nope, that only works for bash not batch. Any other ideas?
If there isnt a way, is there a way to define them? Like have a defined as 01 so every time you use 01 it would use a in its place. I don't want to do 26 if statements for the alphabet, or 52 if I make it case sensitive, and adding symbols would be hell, so if I could make definitions some how that would be great.
If there isnt a way, is there a way to define them? Like have a defined as 01 so every time you use 01 it would use a in its place. I don't want to do 26 if statements for the alphabet, or 52 if I make it case sensitive, and adding symbols would be hell, so if I could make definitions some how that would be great.
![]() |
Other Threads in the Shell Scripting Forum
- Previous Thread: Comparing two folder
- Next Thread: Linux Bash Script
| Thread Tools | Search this Thread |






