Post Reply 
 
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Whitespace in strings
2016-08-02, 20:31
Post: #2
RE: Whitespace in strings
you can use ${} ${} to get a space.
the feature here is that double spaces is automatically trimmed, sometimes that might not be what you want and in those cases you can use the empty settings trick above.

other then that based on the clear screen example in http://ipxe.org/cmd/set#examples
Code:
set sp:hex 20:20:20:20:20
set sp ${sp:string}
# show 1 followed by 5 spaces and then 5
echo 1${sp}5

Use GitHub Discussions
VRAM bin
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Whitespace in strings - weaver6999 - 2016-07-29, 22:17
RE: Whitespace in strings - NiKiZe - 2016-08-02 20:31



User(s) browsing this thread: 1 Guest(s)