News for hackers. Stuff that matters.
Re:An almost perfect rsync over SSH backup script by joosters on Friday February 25, 2022 @09:45AM (#30467792)
> `grep` can be excluded from the output by putting square brackets around one character of the search pattern

That's a great trick, thanks! I'm so used to adding '| grep -v grep' at the end of a 'ps | grep' command, your way is much nicer.

Re:An almost perfect rsync over SSH backup script by Symbiote on Friday February 25, 2022 @09:51AM (#30467848)
On Linux, pgrep is probably what you need most of the time, or pkill.
Re:An almost perfect rsync over SSH backup script by varenc on Friday February 25, 2022 @07:42PM (#30474240)
I like the `psgrep` tool which behaves much more like greping ps that pgrep does. And `psgrep` is actually just a bash script itself.