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
  • 1
    Try removing the @ Commented Sep 12, 2024 at 16:44
  • @muru just tried. Didn't work. Commented Sep 12, 2024 at 16:47
  • It looks like you could simply fgrep for two strings FISPCDSPGS401 and FISPTAPPGS401 and no need to anchor this to the beginning of the line. Or do you also have more complicated cases? Commented Sep 12, 2024 at 17:05
  • @Bodo yeah, I could, but that seems inelegant. And yes, at some point in the Near Future the test will get more complicated. Commented Sep 12, 2024 at 17:09
  • 4
    What you posted as "all the data" has too many lines and too few columns. You don't need to post that many lines of sample input to demonstrate your problem and the right solution will work directly on your .pgpass file, not on the output of running cut on it. Also, showing sample input without the associated expected output isn't useful as we can't test a potential solution with that. Commented Sep 12, 2024 at 18:08