User talk:Tacinte: Difference between revisions

From Open Food Facts wiki
No edit summary
No edit summary
Line 5: Line 5:
|-<br>
|-<br>
|<br>
|<br>
<pre>iconv -f UTF-16 -t UTF-8 32012R0231.txt |  grep -3 "<seg>E "  | sed -n -re '/<tuv/ { N; s/<tuv lang\=\"(..)-..\">.*\n<seg>(.*)<\/seg>/\L\1\E => \2/p }' | sed -e 's/[,;.: ]$//g' | sed -n -re 's/^(.*)([EЕΕ])([ ]*)([0-9]+)([ ]*)([a-h])?([ ]+)([\(ivx\)]*)(.*)\r$/\1\2\4\6(\8, \9/p'  | sed -re 's/\(([\(\,])/\1/' | sed -re 's/en => (.*)$/\n\0/g'  | sed -re 's/  / /g'</pre>
iconv -f UTF-16 -t UTF-8 32012R0231.txt |  grep -3 "<seg>E "  | sed -n -re '/<tuv/ { N; s/<tuv lang\=\"(..)-..\">.*\n<seg>(.*)<\/seg>/\L\1\E => \2/p }' | sed -e 's/[,;.: ]$//g' | sed -n -re 's/^(.*)([EЕΕ])([ ]*)([0-9]+)([ ]*)([a-h])?([ ]+)([\(ivx\)]*)(.*)\r$/\1\2\4\6(\8, \9/p'  | sed -re 's/\(([\(\,])/\1/' | sed -re 's/en => (.*)$/\n\0/g'  | sed -re 's/  / /g'
|}
|}


bla
bla

Revision as of 09:24, 3 November 2014

bla

Header

iconv -f UTF-16 -t UTF-8 32012R0231.txt | grep -3 "<seg>E " | sed -n -re '/<tuv/ { N; s/<tuv lang\=\"(..)-..\">.*\n<seg>(.*)<\/seg>/\L\1\E => \2/p }' | sed -e 's/[,;.: ]$//g' | sed -n -re 's/^(.*)([EЕΕ])([ ]*)([0-9]+)([ ]*)([a-h])?([ ]+)([\(ivx\)]*)(.*)\r$/\1\2\4\6(\8, \9/p' | sed -re 's/\(([\(\,])/\1/' | sed -re 's/en => (.*)$/\n\0/g' | sed -re 's/ / /g'

bla