2009年4月14日星期二

win32 CSS tables from command line

pp -e "use Win32::Clipboard; use DBIx::XHTML_Table; Win32::Clipboard::Set(DBIx::XHTML_Table->new(q(dbi:Oracle:),qq(@ARGV))->exec_query()->modify(table=>{border=>1, bordercolor=> q(black), cellspacing=>0})->output())" -o xtable.exe

echo select * from departments | xtable hr/hr

this will result below thing via paste:

Department_idDepartment_nameManager_idLocation_id
10Administration2001700
20Marketing2011800
30Purchasing1141700

one good thing in windows is that echo * will not make things upside down :)

没有评论: