Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. John,Smith
  2.  
  3. John Smith
  4.  
  5. $ name="John,Smith"
  6. $ echo "${name/,/ }"
  7. John Smith
  8.  
  9. while IFS=, read -ra names; do
  10. echo "${names[*]}"
  11. done < file
  12.  
  13. echo 'John,Smith' | tr ',' ' '
  14.  
  15. NAME="John,Smith"
  16. echo $NAME | tr , ' '
  17. echo $NAME | sed 's/,/ /g'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement