daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ a=$(printf "helloragainrgeorgern")
  2. $ echo "$a"
  3. george
  4.    
  5. $ echo "$a" |od -w32 -t x1c
  6. 0000000  68  65  6c  6c  6f  0d  61  67  61  69  6e  0d  67  65  6f  72  67  65  0d  0a
  7.           h   e   l   l   o  r   a   g   a   i   n  r   g   e   o   r   g   e  r  n
  8.    
  9. $ a=$(printf "ls;rGeorgen")
  10. $ echo "$a"
  11. George
  12. $ eval "$a"
  13. 0                   awkprof.out       event-tester.log  helloworld.c      oneshot.sh         rightclick-tester.py  tmp                    uinput-simple.py
  14. <directory listing appears with an error message at the end for command George>
  15.    
  16. $ a=$(echo -e "ls;rGeorgern"); echo "$a"
  17. George
  18.    
  19. $ a=$(printf "hellooooor  again,rgeorgern")
  20. $ echo "$a"
  21.    
  22. georgen,o
  23.    
  24. $ TESTVAR="$(printf ' Version: 1 r Build: 20180712 r Test: 1324')"
  25.  
  26. $ printf %q $TESTVAR
  27. Version:1$'r'Build:20180712$'r'Test:1324
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top