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.

9
  • Where is the condition then? Commented Dec 7, 2017 at 16:40
  • 1
    Replace source/* by current/*.mp4 Commented Dec 7, 2017 at 17:00
  • 1
    This is expected, the script just run the cp command to copy files and the java command output is captured inside the $(...) construct, there should be no output except if problems. Commented Dec 7, 2017 at 17:06
  • 1
    @TinaJ Yes, you can achieve that with tee. You can read about tee in manual and refer to my answer for solution. Commented Dec 7, 2017 at 19:20
  • 1
    Thanks. Both answers are great. I have a hard time selecting the answer. The other one was 5 min faster ;) Commented Dec 7, 2017 at 19:45