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.

7
  • 3
    What you have is a bash script with a /bin/sh she-bang line, just to clarify. Commented Mar 22, 2018 at 19:43
  • @JeffSchaller yes, when I change the script directive to bash it works fine. but I need to get it working using /bin/sh. Commented Mar 22, 2018 at 19:45
  • Try << instead of < <. Spaces do matter. Commented Mar 22, 2018 at 19:49
  • @eyoung100 that doesn't work. that gives another error "syntax error: unexpected "(" . Commented Mar 22, 2018 at 19:51
  • 1
    @dot, a minor point, you can write crontab -l | awk 'NR > 2 {print $6}' using only one awk Commented Mar 22, 2018 at 19:54