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*

5
  • does the first line always start with x=? Commented Dec 13, 2012 at 16:44
  • @foampile no, just an example Commented Dec 13, 2012 at 16:48
  • are you limited to shell or can you use a scripting language? Commented Dec 13, 2012 at 16:53
  • @foampile I can use any common script language. Speed is less important. Commented Dec 13, 2012 at 17:03
  • i was gonna suggest Perl. @Birei below posted a good answer. albeit i am increasingly liking awk as well Commented Dec 13, 2012 at 17:07