You're replying to a comment by Haba.

Haba Permalink
March 23, 2015, 18:11

I have several of csv files, I want to remove the first row (header) and first column as well. This is my code, but it overwrites the original files with no content inside:

for x in *.csv;
do
sed '1d' $x | cut -d, -f 1 > "$x";

done

Help would be highly appreciated.

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

Type the word "disk_122": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.