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*

6
  • Well thanks for the answer, the output after your command is in the edit of my original post. Commented Aug 22, 2014 at 11:43
  • @Vesnog, your script has to be a zsh script, not a bash script. Commented Aug 22, 2014 at 11:46
  • I am writing this script for a particular purpose and I do not know the differences between the zsh and bash scripts. Commented Aug 22, 2014 at 11:48
  • @Vesnog, put #! /bin/zsh instead of #! /bin/bash at the top of your script. Commented Aug 22, 2014 at 11:56
  • Thanks I will try, apart from that I did not understand the discussion about the newline characters and carriage returns what kind of problems can it pose? Commented Aug 22, 2014 at 12:04