10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all, I have a query that runs that outputs data in the following format -
01/09/12 11:43:40,ADMIN,4,77,Application Group Load: Name(TESTED) LoadId(5137-1-0-1XX-15343-15343) File(/dir/dir/File.T03.CI2.RYR.2012009.11433350806.ARD) InputSize(5344) OutputSize(1359) Rows(2) Time(1.9960)... (8 Replies)
Discussion started by: jeffs42885
2. Shell Programming and Scripting
In a particular directory, there can be 1000 files like below.
filename is job901.ksh
cront -x << EOJ
submit file=$PRODPATH/scripts/genReport.sh maxdelay=30
... (17 Replies)
Discussion started by: vedanta
3. Shell Programming and Scripting
If is possible please help.
I have a big file (example attached) which contends exactly same value in column, but from column 2 to 6 these values are diff. I will like to compile for all records all columns like the example attached in .csv format (output.rar ).. The last column in the... (11 Replies)
Discussion started by: jiam912
4. Shell Programming and Scripting
I need help :) I have a file like this:
AA BC FG
RF TT GH
DD FF HH
(a few number of rows and three columns) and I want to put the letters of each column in a variable step by step in order to give them as input in another script. So I would like to obtain:
for the 1° loop:... (11 Replies)
Discussion started by: edekP
5. Shell Programming and Scripting
Hi, i have a file like this:
... (9 Replies)
Discussion started by: the_simpsons
6. Shell Programming and Scripting
If you can help me with this difficult task for me then it will save my day
... (4 Replies)
Discussion started by: SilvesterJ
7. Shell Programming and Scripting
Hi to all,
I got this content/pattern from file http.log.20110808.gz
mail1 httpd: Account Notice: close email@example.com 2011/8/7 7:37:36 0:00:03 0 0 1
mail1 httpd: Account Information: login firstname.lastname@example.org proxy sid=gFp4DLm5HnU
mail1 httpd: Account Notice: close email@example.com... (16 Replies)
Discussion started by: Mr_47
8. Shell Programming and Scripting
Good evening! Trying to make a shell script to parse log file and show only required information.
log file has 44 fields and alot of lines, each columns separated by ":".
log file is like:
I am interested... (3 Replies)
Discussion started by: dummie55
9. Shell Programming and Scripting
Following is sample portion of the file;
... (12 Replies)
Discussion started by: sujoy101
10. Shell Programming and Scripting
I need some assistance to extract a piece of information from a huge file.
The file is like this one :
cccccccccccccccccc... (2 Replies)
Discussion started by: Marcor
sa2(8) BSD System Manager's Manual sa2(8)
sa2 -- Generate a system activity daily report file.
/usr/lib/sa/sa2 [-dgpu] [-n mode] [-e time] [-f filename] [-i seconds] [-s time]
The sa2 command is a shell script used to invoke the system activity reporter sar for purposes of generating the standard default daily
report file. The report file generated is, /var/log/sa/sardd where the dd represents the current day of the month. The sa2 options are the
same as those documented in sar(1).
When sa2 runs, it will also remove data and report files, found in /var/log/sa, that are more than one week old.
The sa2 command is intended to be started by cron.
EXAMPLE CRON ENTRY
# Starting at 8am collect system activity records
# every 20 minutes for 12 hours
# 20 minutes = 1200 seconds
# 12 hours with 3 samples each hour = 36 loops
0 8 * * 1-5 /usr/lib/sa/sa1 1200 36
# After the 12 hour period,
# collect a system activity report
30 20 * * 1-5 /usr/lib/sa/sa2 -A
/var/log/sa/sardd Default daily report file.
/var/log/sa/sadd Default daily data file.
dd are digits that represent the day of the month.
sa1(8), sadc(8), sar(1), iostat(8), vm_stat(1), netstat(1), top(1), sc_usage(1), fs_usage(1), crontab(1), crontab(5)
Mac OS X Jul 25 2003 Mac OS X