4 ms·
I love Unix pipelines, but chances are your data is structured in such a way that using regex based tools will break that structure unless you're very careful.
by nailer 12y ago
I love Unix pipelines, but chances are your data is structured in such a way that using regex based tools will break that structure unless you're very careful.
You know that thing about not making HTML with regexs? Same rule applies to CSV, TSV, and XLSX. All these can be created, manipulated and read using Python, which is probably already on your system.
- icantthinkofone 12y agoiow, use Unix commands and pipes when you can. Don't use them when you can't.
- unhammer 12y agoThere are unix tools that handle XML or CVS as well ;-) http://wiki.apertium.org/wiki/Xml_grep http://wiki.apertium.org/wiki/Xml_grep http://csvkit.readthedocs.org/en/latest/ http://csvkit.readthedocs.org/en/latest/