01-19-2011
display command output page per page
Good afternoon,
I wonder how i could use unix commands to ease the reading of long command result output ?
like the "php -i" or any other command that returns a long answer.
I could not find the right terms to Google it or search the forum. Therefore I bother you with this question.
if possible, I'd like to be able to read it like a 'man aProgram' entry.
I hope someone will help me with this question, that is not crucial but would still very helpful.
thanks
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi
how can i display the result on the screen one page at a time?
say i search for .txt files and return the result on the screen one page at a time. (4 Replies)
Discussion started by: nickaren
4 Replies
2. Solaris
I have two Dell x86 machines on which I am attempting to install Solaris 10 from CD. I am not doing a Jumpstart install. This is my first experience in installing Solaris (or any other OS). I am following the instructions at How to Quickly Install the Solaris 10 1/06 OS
The first machine... (3 Replies)
Discussion started by: sarahsi
3 Replies
3. Shell Programming and Scripting
hi all
i have file_1 which contains 66 pages and i want to print only page 1 to 3
i try to write like this
lp -d name_of_printer file_1 -P 1-7
this command does not work
any ideas ? (4 Replies)
Discussion started by: naamas03
4 Replies
4. Solaris
Hi,
Currently I'm experience very high page ins on my system running on solaris 10.
From vmstat, the page ins figure is very high, further drill down shows the page ins are from file system and occassional spike in executable page ins.
Details as follow:
oracle@perch:/files>> vmstat 5... (9 Replies)
Discussion started by: srage
9 Replies
5. Emergency UNIX and Linux Support
Hi,
I need a way to grab the total combines since inception, total pages read from webalizer on my centos server or any other location (as long as since inception) and display the result live on my website
So with each visit it would be increasing, or perhaps live (ajax) not sure
But can... (0 Replies)
Discussion started by: lawstudent
0 Replies
6. Web Development
Hi
Is there a way to calculate the page load time, I am trying to calculate the load time of a page locally. I found tools to do this over http or https but none that work locally.
Any ideas?
Thanks. (4 Replies)
Discussion started by: jamie_123
4 Replies
7. Shell Programming and Scripting
Hi
I have a pdf file that is being generated using the rwrun command in the shell script.
I then have the lp command in the shell script to print the same pdf file.
Suppose there are 4 pages in the pdf file , I need to print 2 copies of the first page, 2 copies of the second page , then 2... (7 Replies)
Discussion started by: megha2525
7 Replies
8. Shell Programming and Scripting
Hi,
If there is an expert that can help:
I have many txt files that are produced from pdftotext that include page breaks the page breaks seem to be unix style hex 0C.
I want to add page numbers before each page break as in : Page XXXX
Regards antman (9 Replies)
Discussion started by: antman
9 Replies
LEARN ABOUT DEBIAN
prophet::cli::command
Prophet::CLI::Command(3pm) User Contributed Perl Documentation Prophet::CLI::Command(3pm)
Registering argument translations
This is the Prophet CLI's way of supporting short forms for arguments, e.g. you want to let '-v' be able to used for the same purpose as
'--verbose' without dirtying your code checking both or manually setting them if they exist. We want it to be as easy as possible to have
short commands.
To use, have your command subclass do:
sub ARG_TRANSLATIONS { shift->SUPER::ARG_TRANSLATIONS(), f => 'file' };
You can register as many translations at a time as you want. The arguments will be translated when the command object is instantiated. If
an arg already exists in the arg translation table, it is overwritten with the new value.
require_uuid
Checks to make sure the uuid attribute is set. Prints an error and dies with the command's usage string if it is not set.
edit_text [text] -> text
Filters the given text through the user's $EDITOR using Proc::InvokeEditor.
edit_hash hash => hashref, ordering => arrayref
Filters the hash through the user's $EDITOR using Proc::InvokeEditor.
No validation is done on the input or output.
If the optional ordering argument is specified, hash keys will be presented in that order (with unspecified elements following) for edit.
If the record class for the current type defines a "immutable_props" routine, those props will not be presented for editing.
False values are not returned unless a prop is removed from the output.
edit_props arg => str, defaults => hashref, ordering => arrayref
Returns a hashref of the command's props mixed in with any default props. If the "arg" argument is specified, (default "edit", use "undef"
if you only want default arguments), then "edit_hash" is invoked on the property list.
If the "ordering" argument is specified, properties will be presented in that order (with unspecified props following) if filtered through
"edit_hash".
prompt_choices question
Asks user the question and returns 0 if answer was the second choice, 1 otherwise. (First choice is the default.)
prompt_Yn question
Asks user the question and returns true if answer was positive or false otherwise. Default answer is 'Yes' (returns true).
print_usage
Print the command's usage message to STDERR and die. Commands should implement "usage_msg", which returns the usage message.
If the usage message method needs arguments passed in, use a closure.
get_cmd_and_subcmd_names [no_type => 1]
Gets the name of the script that was run and the primary commands that were specified on the command-line. If a true boolean is passed in
as "no_type", won't add '<record-type>' to the subcmd if no type was passed in via the primary commands.
perl v5.10.1 2009-08-19 Prophet::CLI::Command(3pm)