9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
im trying to print all lines in the /var/log/syslog file that contain the pattern CRON. and after all the lines have been printed, i want a total of all the lines that contained "CRON" to be printed at the end.
the below command is printing the correct lines, but it is giving me the sum of all... (1 Reply)
Discussion started by: SkySmart
1 Replies
2. Shell Programming and Scripting
Hi All,
I have a folder name lets say path/to/folder/CUSTOMER and under this i have several folders and each of these subfolder have serveral subfolders and so on and at some point i will have a folder name called "FTP_FILES" .
I need to search for these folders named "FTP_FILES and then... (10 Replies)
Discussion started by: Kevin Tivoli
10 Replies
3. Shell Programming and Scripting
Have a input file like this .....
attachments 100G
shared 1T
archive 300M
documents 300G
remotedocs 150M
I need the total in GB's ... where as M=MB,G=GB,T=TB
Basically need awk to calculate the total based on end... (5 Replies)
Discussion started by: greycells
5 Replies
4. UNIX for Dummies Questions & Answers
hey i want to print the summary or the total disk usage of the configuration files that are in the /etc directory printed in human-readable format.
i think i got somewhere right as am using wc *.conf commands but i am unsure how to use to put it in human-readable format with the wc command.
... (13 Replies)
Discussion started by: stefanere2k9
13 Replies
5. Shell Programming and Scripting
Hi Everybody,
I have the following example file...
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1... (8 Replies)
Discussion started by: sraj142
8 Replies
6. Shell Programming and Scripting
File1
0358 Not Visible ***:* NA:NA RDF1+TDEV Grp'd (M) RW 102413
0359 Not Visible ***:* NA:NA RDF1+TDEV N/Grp'd (m) RW -
035A Not Visible ***:* NA:NA RDF1+TDEV N/Grp'd (m) RW -
035B Not Visible ***:* NA:NA ... (2 Replies)
Discussion started by: greycells
2 Replies
7. Shell Programming and Scripting
Hello.
I have a status command in AIX box, which provides output as below:
$ status
You are running the application on pegasus2
----Program Name------|--Avail / Total---------|
MQ | 1/2 |
ORACLE | 10/10 |
TMADMIN ... (3 Replies)
Discussion started by: panchpan
3 Replies
8. 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
9. 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