xargs: command not found - Error during trouble shooting after stuck on boot after root patching

Recently, I accidentally updated MacBook to macOS 14.4 from Monterey. The MacBook got stuck during booting, so after searching through this subreddit, I tried a method described here: OpenCore Legacy Patcher Troubleshooting Guide.

After executing the command:

cd "/Volumes/Macintosh HD - Data/Library/Extensions" && ls | grep -v "HighPoint*\|SoftRAID*" | xargs rm -rf 

I get error
xargs: command not found

Do anyone get any idea what can be problem?

The problem occurred on a mid-2009 MacBook Pro. Previously, I had installed Monterey 12.7.3 on it. I've tried other methods as well, but nothing seems to work. When attempting to boot into safe mode, I'm prompted to connect a keyboard. I accessed the terminal through a USB with the Monterey image.

This is my first time encountering OpenCore Legacy Patcher as I bought the MacBook with Monterey already installed, so I would appreciate any help with reviving it. If anyone has experience or suggestions on how to resolve this issue, I'm all ears. Thanks in advance for any assistance you can provide!

submitted by /u/PuzzleheadedJicama47
[link] [comments]