Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    You can devise valid expressions for test with exactly 4 arguments, but you'd need -a or -o to combine 2 expressions. Commented Oct 18, 2022 at 22:52
  • I tried to implement this solution and I get the following error on Solaris: Sending status message to user grep: illegal option -- o grep: illegal option -- E Usage: grep [-c|-l|-q] -bhinsvw pattern file . . . Commented Oct 19, 2022 at 14:45
  • I don't see grep in my answer. Maybe you need to ask a separate question. Commented Oct 19, 2022 at 15:02
  • Technically, [ find "..." -mtime -1 ]; passes 5 words to [, namely find, "...", -mtime, -1, and ]. Commented Oct 19, 2022 at 15:04