Guest User

Untitled

a guest
Apr 12th, 2018
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. VALUE=<<PERSON
  2. some data
  3. PERSON
  4.  
  5. echo "$VALUE"
  6.  
  7. VALUE= <<PERSON
  8. some data
  9. PERSON
  10.  
  11. <<PERSON
  12. some data
  13. PERSON
  14.  
  15. <somefile
  16.  
  17. VALUE=$(cat <<PERSON
  18. some data
  19. PERSON
  20. )
  21.  
  22. python -m json.tool <<END_JSON
  23. JSON data here
  24. END_JSON
  25.  
  26. $ VALUE=<<PERSON
  27. > {
  28. > "type": "account",
  29. > "customer_id": "1234",
  30. > "customer_email": "jim@gmail.com",
  31. > }
  32. > PERSON
  33. $ echo "$VALUE"
  34.  
  35. $
  36.  
  37. $ read -d '' -r VALUE <<PERSON
  38. {
  39. "type": "account",
  40. "customer_id": "1234",
  41. "customer_email": "jim@gmail.com",
  42. }
  43. PERSON
  44.  
  45. VALUE=$(cat <<EOF
  46. {
  47. "type": "account",
  48. "customer_id": "1234",
  49. "customer_email": "jim@gmail.com",
  50. }
  51. EOF
  52. )
  53.  
  54. VALUE='{
  55. "type": "account",
  56. "customer_id": "1234",
  57. "customer_email": "jim@gmail.com",
  58. }'
  59.  
  60. python -m json.tool<<PERSON
  61. {
  62. "type": "account",
  63. "customer_id": "1234",
  64. "customer_email": "jim@gmail.com",
  65. }
  66. PERSON
Add Comment
Please, Sign In to add comment