SHARE
TWEET

csv-flex example

a guest Aug 21st, 2019 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ uname -a
  2. FreeBSD BanjaLuka 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC  amd64
  3.  
  4. $ cat cvs2t.l
  5. %%
  6.  
  7. "'"[^']*"'"     ECHO;
  8. ,               putchar('\t');
  9. .               ECHO;
  10.  
  11. $ flex cvs2t.l
  12.  
  13. $ cc lex.yy.c -ll -o cvs2t
  14.  
  15. $ cat cvs.dat
  16. red,white,blue
  17. 'red,white,blue','red,green,black','gray,orange,yellow'
  18.  
  19. $ cvs2t < cvs.dat
  20. red     white   blue
  21. 'red,white,blue'        'red,green,black'       'gray,orange,yellow'
  22.  
  23. $
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top