You can use the command cut to remove specific columns from a file. The basic syntax for removing columns is:
cut -f <column numbers> -d <delimiter> <input file> > <output file>
To remove all columns except the first and third columns from a file that is semicolon-separated, you would use the following command:
cut -f 1,3 -d ';' <input file> > <output file>
This command will take the input file, remove all columns except the first and third, using the semicolon as the delimiter and then write the output to the specified output file.