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
  • From what I understood, this is what OP is doing now but they are not satisfied with it. Commented May 2, 2020 at 14:18
  • BTW, you don't need echo. Commented May 2, 2020 at 14:19
  • I understood the OP is doing SEARCH='*.txt' find / -name $SEARCH. The echo is there only to let him know it is a 'pipe-ish' solution that he can substitute with other commands. Commented May 2, 2020 at 14:19
  • Both of these will work. I like the 2nd better. However both will stall the pipe. find can not start until cut ends. It is good if the grep ... cut is quick, and produces little output. Commented May 2, 2020 at 14:29