I have a data file with many thousands of columns and rows. I want to remove the first column, which is actually a row counter. I used this command in linux:
cut -d " " -f 2- input.txt > output.txt
but nothing has changed in my release. Does anyone know why this is not working and what should I do?
This is what my input file looks like:
col1 col2 col3 col4 ... 1 0 0 0 1 2 0 1 0 1 3 0 1 0 0 4 0 0 0 0 5 0 1 1 1 6 1 1 1 0 7 1 0 0 0 8 0 0 0 0 9 1 0 0 0 10 1 1 1 1 11 0 0 0 1 . . .
I want my result to look like this:
col1 col2 col3 col4 ... 0 0 0 1 0 1 0 1 0 1 0 0 0 0 0 0 0 1 1 1 1 1 1 0 1 0 0 0 0 0 0 0 1 0 0 0 1 1 1 1 0 0 0 1 . . .
I also tried the sed command:
sed '1d' input.file > output.file
But it deletes the first row, not the first column.
Can anyone visit me?
source share