Get selective columns from a dump file using MS DOS and make new dump

Hi:
I've a dump file in text format (pipe separator). I need to select specific columns from the file and make a new file. For Example,

Original Dump (I need to select column 3, 4 and 6; and make a new dump). How can I do it in MS DOS using a batch file?

AAA|BBB|CCC|DDD|EEEE|FFFF|GGGG|HHHH
TTT|MMM|KKK|123|FFFF|VVVV|IIII|BBBB
XXX|SSS|AAA|ZZZ|TTTT|JJJJ|RRRR|YYYY

Output Dump

CCC|DDD|FFFF
KKK|123|VVVV
AAA|ZZZ|JJJJ

Please help.

Tanvir

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories