naming spreadsheet in command line

12 views
Skip to first unread message

Janet Y Bang

unread,
May 12, 2020, 2:25:49 PM5/12/20
to chib...@googlegroups.com
Hello, 

Is there a way to name an output from the command line when it is spreadsheet? For example, when you use the command: mlu +d. I noticed that there was a redirection option (>, >> or >&) with the +f switch when the output would be a .txt file, but couldn't figure out a way for this to work for spreadsheets? 

Thank you,
Janet

--

Janet Y. Bang, Ph.D.

Postdoctoral Fellow

Department of Psychology

Stanford University


jb...@stanford.edu





Leonid Spektor

unread,
May 12, 2020, 4:13:04 PM5/12/20
to chib...@googlegroups.com
There are several way to change the output file name. The first is a redirect way that looks like this:

mlu +d file.cha -f > out.xls

This will create "out.xls" output file. You should not use >> or >&, because the "out.xls" file has strict XML format that Excel can process.

The second way is to use +fS option like this.

mlu +d +fone file.cha

This will create output file "file.one.xls". The string (S) after +f option can be any word you want.


Leonid.

-- 
You received this message because you are subscribed to the Google Groups "chibolts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chibolts+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chibolts/BYAPR02MB5285DE56CF6F655E8F38478CD7BE0%40BYAPR02MB5285.namprd02.prod.outlook.com.

Janet Bang

unread,
May 12, 2020, 4:26:58 PM5/12/20
to ChiBolts
Hi Leonid,

Thank you the -f switch is what I needed!

Janet

Reply all
Reply to author
Forward
0 new messages