marado / ICT-EU

Fetch info about EU ICT projects into a CSV
4 stars 1 forks source link

CSV generated on Mac OS is malformed #2

Closed marado closed 9 years ago

marado commented 9 years ago

There are no output errors, but the resulting file on Mac OS has the wrong info on some columns, probably due to a different behaviour of some of the shell tools used by the script (grep, sed, cut... ?).

marado commented 9 years ago

The problem is this behaviour:

$ echo "This isa MAC"|sed 's/<\/li>/\r\n/g' This isrna MAC

marado commented 9 years ago

http://unix.stackexchange.com/questions/13711/differences-between-sed-on-mac-osx-and-other-standard-sed