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*

4
  • awsome response !! thanks a lot @Serg . Just a question If I want to add an other field like Regulated FR I make it like this? : if ($1~/Regulated/ || $1~/FR/ || $1~/Regulated/ || $1~/ ENG/) ? Commented Feb 29, 2016 at 13:32
  • 1
    Well, what the original line does is to test if column number $1 has words regulated or FR. If you want " Regulated ENG" line , it will be found already, just because it has the word regulated. But if you are looking for something like "ENG xx", then add if ($1~/ENG/) . It always depends on how your input text file looks like, so i cannot tell you how to program something i never seen Commented Feb 29, 2016 at 13:57
  • Thanks a lot for your comment and your time, it helped me a lot :) Commented Feb 29, 2016 at 14:04
  • 1
    Always glad to help :) Commented Feb 29, 2016 at 14:08