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*

3
  • according to your example (git branch develop) you want to check if "$#" is "2" and not "3" ? ... (2 parameters to the git function) Commented May 12, 2015 at 15:44
  • Was a mistake, but the code is just an example Commented May 12, 2015 at 15:46
  • ok. I added additional remarks underneath Stephane's (good) answer. my remarks may not be applicable (I think of the .txt as a log file, but it could be something else that can't have dates in it?) Commented May 12, 2015 at 16:01