I'm trying to modify the text that is in my clipboard, remove certain lines of that contains some strings and then get the output for further manipulation (I prefer coping to my clipboard only if I need it). I was thinking something like this:
cat > swapfile ##Paste all grep -v string swapfile ## Read all rm swapfile
I try to prevent the file creation and doing everything in the shell stdin/out itself. I tried using pipes, redirections, grep/sed from the input, but none resulted in printing the input without the undesired pattern.