Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

This question already has an answer here:

Is there a way to delete the first column of a csv using a batch command file? I have data in this first column but I want to get rid of it and output a new file starting at the 2nd column.

Thanks!

share|improve this question

marked as duplicate by Karan, Simon Sheehan, Hennes, Scott, Dave M Apr 11 '13 at 20:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
Does it have to be cmd-line? You could easily do this in Excel. –  Brad Patton Apr 11 '13 at 14:44
1  
What have you tried or researched so far? –  CharlieRB Apr 11 '13 at 14:45
add comment

1 Answer

What about?

cut -f 2- <file>

EDIT: The delimiter can be defined with -d

share|improve this answer
    
cut isn't available on Windows by default. –  Karan Apr 11 '13 at 15:04
    
+1 for using 2- instead of 2-9 (or even 2-42). –  Scott Apr 11 '13 at 17:20
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.