parse and paste text
0001-01-01
53 words
1 min read
Lot of times, I copy the text but before pasting want to remove a word or make some other changes or add “wget” to the URL, quite common. So, I came up with this alias
replace='echo $(xclip -i)|sed 's/text//'|xclip -o'
and this depends on xlip, which you can install with
dnf install xclip
Related Articles:
- 2020/08/30 Warn when battery is low
- 2020/08/23 Some good find alias.
- 2020/08/16 Books menu with bash
- 2020/07/26 Pygmentize Styles
- 2020/04/20 scripting – performance improvement with file open

Authored By Amit Agarwal
Amit Agarwal, Linux and Photography are my hobbies.Creative Commons Attribution 4.0 International License.