Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ a=$(printf "helloragainrgeorgern")
- $ echo "$a"
- george
- $ echo "$a" |od -w32 -t x1c
- 0000000 68 65 6c 6c 6f 0d 61 67 61 69 6e 0d 67 65 6f 72 67 65 0d 0a
- h e l l o r a g a i n r g e o r g e r n
- $ a=$(printf "ls;rGeorgen")
- $ echo "$a"
- George
- $ eval "$a"
- 0 awkprof.out event-tester.log helloworld.c oneshot.sh rightclick-tester.py tmp uinput-simple.py
- <directory listing appears with an error message at the end for command George>
- $ a=$(echo -e "ls;rGeorgern"); echo "$a"
- George
- $ a=$(printf "hellooooor again,rgeorgern")
- $ echo "$a"
- georgen,o
- $ TESTVAR="$(printf ' Version: 1 r Build: 20180712 r Test: 1324')"
- $ printf %q $TESTVAR
- Version:1$'r'Build:20180712$'r'Test:1324
Add Comment
Please, Sign In to add comment