Beware CSV files!

The_Librarian

Another MyBB
Super Moderator
Joined
Nov 20, 2015
Messages
37,650
You'd think a CSV is a safe file?

Not quite.

Check this article out.

CSV injection is a nasty buggreh, and still in its infancy.

Going to play around with it and see what fun stuff I can get Excel to do :D
 

Genisys

Honorary Master
Joined
Jan 12, 2016
Messages
11,217
Using Excel for CSV files... There is the problem right there. Use Notepad or any other editor, really isn't difficult to navigate a CSV file.
 

Hamish McPanji

Honorary Master
Joined
Oct 29, 2009
Messages
42,084
When i see a CSV file, i run in the other direction. Because chances are i will be assigned to process is. Then end up having to do data entry of some sorts eventually to fix the data.

Yes, i fear data entry....and so am terrified of CSV's
 

Ho3n3r

Honorary Master
Joined
Apr 5, 2012
Messages
17,058
Using Excel for CSV files... There is the problem right there. Use Notepad or any other editor, really isn't difficult to navigate a CSV file.

With 100 columns, that's much harder to read. Excel should be fixed, instead of having to do workarounds for broken apps.
 

SlinkyMike

Executive Member
Joined
Jan 23, 2006
Messages
9,578
When i see a CSV file, i run in the other direction. Because chances are i will be assigned to process is. Then end up having to do data entry of some sorts eventually to fix the data.

Yes, i fear data entry....and so am terrified of CSV's

You need Python in your life ;)
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,847
Using Excel for CSV files... There is the problem right there. Use Notepad or any other editor, really isn't difficult to navigate a CSV file.

Yeah try do some concatenation on a CSV file using Notepad...

You'd have better luck throwing it at a Linux terminal if it's standard format than using Notepad.
 

Genisys

Honorary Master
Joined
Jan 12, 2016
Messages
11,217
Yeah try do some concatenation on a CSV file using Notepad...

You'd have better luck throwing it at a Linux terminal if it's standard format than using Notepad.
There is also open source office alternatives available, which also has spreadsheet tools...
 

Neoprod

Honorary Master
Joined
May 21, 2004
Messages
19,528
Yeah try do some concatenation on a CSV file using Notepad...

You'd have better luck throwing it at a Linux terminal if it's standard format than using Notepad.

When I needed to concatenate, I used ye old Windows command prompt.

Textpad (I think) is another very good program for working with big csv files - I've also found wingrep and then grepwin useful on occasions.

Excel is more of a hindrance than anything with it's insta-formatting of dates (timestamps especially) and bigints.
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,847
There is also open source office alternatives available, which also has spreadsheet tools...

Yeah for sure.

I was referring to “Excel” as spreadsheet applications in general over text editors.

By far the best CSV editor is iWork Numbers.
 

SauRoNZA

Honorary Master
Joined
Jul 6, 2010
Messages
47,847
When I needed to concatenate, I used ye old Windows command prompt.

Textpad (I think) is another very good program for working with big csv files - I've also found wingrep and then grepwin useful on occasions.

Excel is more of a hindrance than anything with it's insta-formatting of dates (timestamps especially) and bigints.

Yeah all depends on your input data and I agree Excel can be retarded for that.

There are many options from grep to awk to sed or a combination of them even.

But the point was that Notepad is nowhere near Excel for these purposes which was the original argument.

Like I said above if I didn’t automate it already then I’ll do a manual once off in Numbers over most other things.
 

Nod

Honorary Master
Joined
Jul 22, 2005
Messages
10,057
I use LibreOffice to format and export a CSV to excel.
The fact that you can specify the formatting before it opens the file is a huge plus, and does not try to guess formatting like excel.
 
Top