On Tue, 24 Dec 2024, Rich Shepard wrote:
Converting between spaces and tabs is easily done with sed, and that's what my web searches show. But, I don't recall a tool that will tell me whether the white spaces in a text file are spaces or a tab, and that's not showing up in my web search. How's it done?
Fugeddaboutit, gawk treats all white spaces as a single space so it don't matter. I have a PDF file with three columns: First, Last, and Company. When I use pdftotext I end up with a single column: all first names, a space, all last names, a space, all company names rather than rows with three fields. I've no idea what software produced the PDF but now I need to figure out how to convert the columns to rows. I'm sure emacs' rectangle commands will do this so that's what I'll use until I get it right. Rich
