Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
boothead
· 13y ago · 0 comments
No mention of the data format. Is it json, csv what? I know you can always head -n the file but a little hint would be helpful!
Comments
[–]
nachi
13y ago
It looks like an ASCII-formatted table. Pretty disappointing that it isn't machine readable out of the box.
[–]
timthorn
13y ago
What's not machine readable about an ASCII table? A fixed width table has its own advantages over eg CSV - for instance, to read a specific field you can reach it by offset rather than having to count delimiters.
[–]
cwmma
13y ago
fixed width might have technical advantages but CSV has the advantage of being able to be read by a lot of things out of the box.
[–]
timthorn
13y ago
So does fixed width. Excel, MySQL, R, Perl... :)
[–]
aw3c2
13y ago
sed 's/[[:blank:]]//g' dataset.dat | sed 's/|/\t/'