extract different sections of a file

Hi All,
I have a file with the data

10;20;30;40;50;60;70;80;123;145;156;345

. the output i want is the first fourth sixth elements and everything from there on. How do i achieve this.

cut -d\; -f1,4,6- infile
1 Like