I have a text file, I only need the first column and the last column. However, the problem is that they are separated by spaces and tabs in random places, which makes it difficult to use cut
USER02163 name BAD USER5415 ab lsi ei GOOD USER15356 sl oe ow BAD
Required Conclusion:
USER02163 BAD USER5415 GOOD USER15356 BAD
Does anyone have a hacker way to get the desired result?
source share