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*

10
  • Run the script with bash -x to see what commands are actually run. Commented Jun 12, 2018 at 9:57
  • Already done. grep and gawk work properly. They use the variable because output files, which are not empty, are named correctly. Commented Jun 12, 2018 at 10:00
  • Please put echo PROJECT=\""$PROJECT"\" before each command. Commented Jun 12, 2018 at 10:01
  • Done. Project names are prompted well also before the last grep command. Commented Jun 12, 2018 at 10:04
  • 2
    side note: the style guide for Unix says that shell variables should be lowercase, unless exported, in which case they should be all capitals. Commented Jun 12, 2018 at 11:09