/usr/share/doc/slsh/html/slshfun-12.html is in slsh 2.3.0-2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.66">
<TITLE> SLSH Library Reference (version 2.3.0): Miscellaneous Functions</TITLE>
<LINK HREF="slshfun-13.html" REL=next>
<LINK HREF="slshfun-11.html" REL=previous>
<LINK HREF="slshfun.html#toc12" REL=contents>
</HEAD>
<BODY>
<A HREF="slshfun-13.html">Next</A>
<A HREF="slshfun-11.html">Previous</A>
<A HREF="slshfun.html#toc12">Contents</A>
<HR>
<H2><A NAME="s12">12.</A> <A HREF="slshfun.html#toc12">Miscellaneous Functions</A></H2>
<H2><A NAME="print"></A> <A NAME="ss12.1">12.1</A> <A HREF="slshfun.html#toc12.1"><B>print</B></A>
</H2>
<P>
<DL>
<DT><B> Synopsis </B><DD>
<P>Display a string representation of an object or value</P>
<DT><B> Usage </B><DD>
<P><CODE>print (value [,&var|file-pointer|filename])</CODE></P>
<DT><B> Description </B><DD>
<P>The <CODE>print</CODE> function displays the string representation of a
value to the display. An optional second argument may be provided to
specify where to write the resulting string: a variable, an open file
pointer, or to a file.</P>
<P>If the string representation of the object appears to contain more
lines than are available on the screen, then the output will be piped
to the program given by the <CODE>PAGER</CODE> environment variable.
Alternatively the pager program may be specified via the <CODE>pager</CODE>
qualifier.</P>
<DT><B> Qualifiers </B><DD>
<P>
<BLOCKQUOTE><CODE>
<PRE>
pager[=string] Force the use of the pager. If a value is
specified, then use it for the pager command.
nopager Do not use a pager.
</PRE>
</CODE></BLOCKQUOTE>
</P>
<DT><B> Example </B><DD>
<P>Print the string representation of an array to a file called
<CODE>array.dat</CODE>:
<BLOCKQUOTE><CODE>
<PRE>
print ([1:20:0.1], "array.dat");
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>Print the string represent of an array to a string <CODE>str</CODE>:
<BLOCKQUOTE><CODE>
<PRE>
print ([1:20:0.1], &str);
</PRE>
</CODE></BLOCKQUOTE>
</P>
<DT><B> See Also </B><DD>
<P><CODE>print_set_pager, print_set_pager_lines</CODE></P>
</DL>
</P>
<H2><A NAME="print_set_pager"></A> <A NAME="ss12.2">12.2</A> <A HREF="slshfun.html#toc12.2"><B>print_set_pager</B></A>
</H2>
<P>
<DL>
<DT><B> Synopsis </B><DD>
<P>Set the name of the pager program used by the print program</P>
<DT><B> Usage </B><DD>
<P><CODE>print_set_pager (String_Type cmd)</CODE></P>
<DT><B> Description </B><DD>
<P>This function may be used to specify the name of the default pager to be
used by the <CODE>print</CODE> function.</P>
<DT><B> See Also </B><DD>
<P><CODE>print, print_set_pager_lines</CODE></P>
</DL>
</P>
<H2><A NAME="print_set_pager_lines"></A> <A NAME="ss12.3">12.3</A> <A HREF="slshfun.html#toc12.3"><B>print_set_pager_lines</B></A>
</H2>
<P>
<DL>
<DT><B> Synopsis </B><DD>
<P>Set the maximum number of lines to print before using a pager</P>
<DT><B> Usage </B><DD>
<P><CODE>print_set_pager_lines (Int_Type num)</CODE></P>
<DT><B> Description </B><DD>
<P>The <CODE>print_set_pager_lines</CODE> function sets the maximum number of
lines that the string representation of an object can be before the
<CODE>print</CODE> function will use a pager.</P>
<DT><B> See Also </B><DD>
<P><CODE>print, print_set_pager</CODE></P>
</DL>
</P>
<HR>
<A HREF="slshfun-13.html">Next</A>
<A HREF="slshfun-11.html">Previous</A>
<A HREF="slshfun.html#toc12">Contents</A>
</BODY>
</HTML>
|