pspp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to put a line of arbitrary text in the output stream?


From: Ben Pfaff
Subject: Re: How to put a line of arbitrary text in the output stream?
Date: Wed, 13 Apr 2011 12:47:43 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Juan Zuluaga <address@hidden> writes:

> Hello PSPP people, 
> may I ask how to put a line of arbitrary text in the output stream? I'm 
> having a bit of trouble with the new line. I realize it may not be a pspp 
> problem but a bash feature -- any ideas would be appreciated. 
>
> My system: linux, bash, pspp 0.7.7.  
>
> I tried the -O init option, also the ECHO command -- nice in that I can put a 
> line anywhere, but the preceding ECHO is a minor annoyance. 
>
> juan:$ pspp example.sps -O init='String to be written'|head -n 5
> String to be writtenDATA LIST

I guess you want:

    address@hidden:~/pspp/master/_build(0)$ src/ui/terminal/pspp test.pspp -O 
init='String to be written
    '|head -n 5
    String to be written
    DATA LIST

    Reading free-form data from INLINE.
    +--------+------+
    address@hidden:~/pspp/master/_build(0)$ 

(Just push Enter in the middle of entering the command.)
-- 
Ben Pfaff 
http://benpfaff.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]