|Bill East on 22 May 2013 21:36:25 -0700|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|Re: [PLUG] 2013-05-21 PLUG W follow-up|
Thanks to Walt for an interesting look at NumPy and SciPy.
We also talked about formatting output from bash scripts. I suggested plain old 'echo' or 'printf' commands. Note that 'printf' is POSIX but 'echo' is not, and 'echo' *does* behave differently by default on various different systems. E.g. on some systems "\n" is expanded to a newline while on others (like Linux) you need to use 'echo -e' (but see "xpg_echo" as well ). Or you can output tab delimited or CSV output and import into a spreadsheet. Someone also mentioned the 'fmt' command, which can be useful. The 'fmt' and possibly 'column', 'colrm', 'awk' and 'cut' commands may also be of interest. When I know I'm going right into a spreadsheet though, I just do tab delimited output like 'echo -e "Foo\tBar\tbaz"'. It's really easy...
___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug