05-03-2011
hmmm
where should i write the above line...
For example my script name is my_script.ksh...
should i write time my_script.sh inside the same script...
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Ok, another fun hiccup in my UNIX learning curve. I am trying to count the number of occurrences of an IP address across multiple files named example.hits. I can extract the number of occurrences from the files individually but when you use grep -c with multiple files you get the output similar to... (5 Replies)
Discussion started by: MrAd
5 Replies
2. UNIX for Dummies Questions & Answers
Hi All
Can anyone help me with the following du querry. I am trying to achieve a total size for all the zipped files in a directory. Using du -k *.gz gets me a file by file list but no handy total at the bottom.
Thanks
Ed (9 Replies)
Discussion started by: C3000
9 Replies
3. Shell Programming and Scripting
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Discussion started by: bigben1220
4 Replies
4. Shell Programming and Scripting
Hi guys,
I can't find a solution to sum the h:m:s: columns.
28/05/2010 03h 29min 34seg ADSL TELEMAR
28/05/2010 12h 19min 21seg ADSL TELEMAR
29/05/2010 04h 20min 02seg ADSL TELEMAR
29/05/2010 04h 31min 45seg ADSL TELEMAR
30/05/2010 06h 10min 43seg ADSL TELEMAR
Thanks
Use code... (8 Replies)
Discussion started by: ashimada
8 Replies
5. Shell Programming and Scripting
Input file
SFSQW 5192.56
HNRNPK 611.486
QEQW 1202.15
ASDR 568.627
QWET 6382.11
SFSQW 4386.3
HNRNPK 100
SFSQW 500
Desired output file
SFSQW 10078.86 3
QWET 6382.11 1
QEQW 1202.15 1
HNRNPK 711.49 2
ASDR 568.63 1
The way I tried: (2 Replies)
Discussion started by: patrick87
2 Replies
6. Shell Programming and Scripting
Hi Friend,
Need your help.
I have a file which has information of start time and End time . I need to find how much time takes to complete the job . how can I do it in unix command .
Example of Log file :
Start Loading ---Thu Aug 2 17:14:09 EDT 2012
Load... (5 Replies)
Discussion started by: deep_kol
5 Replies
7. UNIX for Dummies Questions & Answers
I'm using a .txt file filled with domain names for dig to use, the problem is that when i look at the results I get the query time for each individual query, I want to know how long it took in total for all queries to run, how can I achieve this? any help would be greatly appreciated, thank you.... (3 Replies)
Discussion started by: r7a7v7
3 Replies
8. Solaris
i want to list Total HDD count in any soalris machine..can someone suggest some commands or combinations of commands (6 Replies)
Discussion started by: omkar.jadhav
6 Replies
9. UNIX for Beginners Questions & Answers
Through find command I identified the files older that 1 year. I need the overall size utilizes by these 1 year older files. Please share me the command to identify it .Thanks
Please post in an adequate technical forum! (3 Replies)
Discussion started by: Sang
3 Replies
LEARN ABOUT PHP
hw_gettext
HW_GETTEXT(3) 1 HW_GETTEXT(3)
hw_GetText - Retrieve text document
SYNOPSIS
int hw_gettext (int $connection, int $objectID, [mixed $rootID/prefix])
DESCRIPTION
Returns the document with object ID $objectID. If the document has anchors which can be inserted, they will be inserted already.
This function will only work for pure text documents. It will not open a special data connection and therefore blocks the control connec-
tion during the transfer.
PARAMETERS
o $connection
- The connection identifier.
o $objectID
- The object identifier.
o $rootID/prefix
- The optional parameter $rootID/prefix can be a string or an integer. If it is an integer it determines how links are inserted
into the document. The default is 0 and will result in links that are constructed from the name of the link's destination object.
This is useful for web applications. If a link points to an object with name 'internet_movie' the HTML link will be <A
href="/internet_movie">. The actual location of the source and destination object in the document hierarchy is disregarded. You
will have to set up your web browser, to rewrite that URL to for example '/my_script.php/internet_movie'. 'my_script.php' will
have to evaluate $PATH_INFO and retrieve the document. All links will have the prefix '/my_script.php/'. If you do not want this
you can set the optional parameter $rootID/prefix to any prefix which is used instead. Is this case it has to be a string. If
$rootID/prefix is an integer and unequal to 0 the link is constructed from all the names starting at the object with the id
$rootID/prefix separated by a slash relative to the current object. If for example the above document 'internet_movie' is located
at 'a-b-c-internet_movie' with '-' being the separator between hierarchy levels on the Hyperwave server and the source document is
located at 'a-b-d-source' the resulting HTML link would be: <A HREF="../c/internet_movie">. This is useful if you want to download
the whole server content onto disk and map the document hierarchy onto the file system.
RETURN VALUES
Returns the text document.
SEE ALSO
hw_pipedocument(3), hw_free_document(3), hw_document_bodytag(3), hw_document_size(3), hw_output_document(3).
PHP Documentation Group HW_GETTEXT(3)