On Mon, Sep 19, 2022 at 11:50 AM PK <princek...@gmail.com> wrote: > search:=scanner.Text() > cmd1,err:=exec.Command("bash", "-c", "find . -name '*$search*'")
Try something like this, not tested: cmd, err := exec.Command("bash", "-c", fmt.Sprintf("find . -name %s", search)) -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAA40n-Up7L%2B%3D%3DcRSftkwvn7VBWDLmpsJmeY%2B8TVTkfzjnd-JMQ%40mail.gmail.com.