Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. $ grep -i "/dn" file.txt | xargs -I{} printf "%sn/period" {}
  2.  
  3. /dn
  4. /period
  5.  
  6. sed -r "s:(/dn):1/period:" filename
  7.  
  8. here is /dn a file
  9. containing some /dn
  10. here /dn too
  11.  
  12. here is /dn/period a file
  13. containing some /dn/period
  14. here /dn/period too
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement