Advertisement
Guest User

search and replace in clipboard

a guest
Sep 18th, 2014
3,493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.11 KB | None | 0 0
  1. function search-replace {
  2.     search="$1"
  3.     replace="$2"
  4.     xclip -o | sed "s/$search/$replace/g" | xclip -sel clip
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement