I have a pipe-delimited file named old.txt that looks like this:
Data1|Data2|Data3|Data4|Data5
Data1|Data2|Data3|Data4|Data5
Data1|Data2|Data3|Data4|Data5
I need to copy its contents to a new file, named new.txt, but with the second column removed:
Data1|Data3|Data4|Data5
Data1|Data3|Data4|Data5
Data1|Data3|Data4|Data5
How do I do this?