My pleasure. Such one-liners are a good way to automate things with relatively little syntax research needed. 😎 (They're actually multiple commands separated by semicolons.)

That said, they also can be a source for agonizing frustration if they don't do what you want – until they do, eventually. 😉