Guest User

Untitled

a guest
Jun 25th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Questions='/Users/User/Stackoverflow/Questions'
  2.  
  3. Address='My address'
  4.  
  5. $Questions
  6. $Addres
  7.  
  8. sed -e "s|@QUESTIONS@|$Questions|g; s|@ADDRESS@|$Address|g" file.txt
  9.  
  10. echo "$Questions"
  11. echo "$Address"
  12.  
  13. $ source my_file
  14.  
  15. $ . my_file
  16.  
  17. export Questions='/Users/User/Stackoverflow/Questions'
  18. export Address='My address'
  19.  
  20. cat <<END
  21. [your text]
  22. END
  23.  
  24. export Questions='/Users/User/Stackoverflow/Questions'
  25. export Address='My address'
Add Comment
Please, Sign In to add comment