Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nachi
· 13y ago · 0 comments
It looks like an ASCII-formatted table. Pretty disappointing that it isn't machine readable out of the box.
Comments
[–]
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/'