Hi...
I have a tab delimited file that has three fields. It looks like this:
1111 14A 1111
2222 7C 2222
3333 11B 3333
4444 99X 4444
I need to write a command that will "cut" three bytes from the second field (cutting spaces if there is no data in the third byte), outputting them to newfile.
I've tried, "cut -f2 <infile> > <outfile>", and that works, except it doesn't take three bytes from the second field containing '7C'. In other words, it cuts '7C', instead of '7C '. Know what I mean???
Once again, any help would be greatly appreciated. Thanks!
I have a tab delimited file that has three fields. It looks like this:
1111 14A 1111
2222 7C 2222
3333 11B 3333
4444 99X 4444
I need to write a command that will "cut" three bytes from the second field (cutting spaces if there is no data in the third byte), outputting them to newfile.
I've tried, "cut -f2 <infile> > <outfile>", and that works, except it doesn't take three bytes from the second field containing '7C'. In other words, it cuts '7C', instead of '7C '. Know what I mean???
Once again, any help would be greatly appreciated. Thanks!