11-27-2012
Can you explain the
?Y[i,SU]:0 in
Y[i,SU]?Y[i,SU]:0?
Edit: Found it.
Print a
0 instead of
blank if no hits
This User Gave Thanks to Jotne For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi Everyone , have a nice day
given below is a simple linux script
but its first part is not working ( variable k assignment ) , while second loop is working fine
can anyone help me out with this
#!/bin/sh
echo "Enter Date"
read date1
for i in 00 01 02 03 04 05 06 07 08 09 10 11 12 13 14... (6 Replies)
Discussion started by: Dastard
6 Replies
2. Shell Programming and Scripting
HI im a novice with shell scripts but i need help with a random script I have this folder filled with 500 different file names... I need help creating a script that will take each filename and make a new folder named that filename and then move that file into the newly created folder. Then the... (1 Reply)
Discussion started by: emachala
1 Replies
3. Shell Programming and Scripting
Hello everybody!
This is my first time having to write a script so your help is most appreciated.Also i am a beginner when it comes to linux so please bare with me.Thanks in advance to all who will look into this for me.
I have to write a bash script that will show the free space on the hard... (4 Replies)
Discussion started by: manike
4 Replies
4. Shell Programming and Scripting
I am creating a script that will incorporate multiple variables organized in a spreadsheet for pdftk. I have a 1000 page pdf that I have to split into about 300 individual pdfs. The basic command line to extract pages is as follows:
$ pdftk file.pdf cat 1-7 output newfile.pdf
file.pdf =... (8 Replies)
Discussion started by: tankcommander
8 Replies
5. Linux
I need to write a script to which need to track errors in log and need to check last 100 lines in the log at every 5 minits. if error fund need to mail my self
error type
1. "STATE_ADMIN" if found need to print: <Jan 5, 2011 11:47:02 AM IST><ewaps2> <ADFAPPS2> < STATE_ADMIN
2."Java heap... (0 Replies)
Discussion started by: udara
0 Replies
6. Shell Programming and Scripting
#!/bin/sh
args=("$@")
echo "#================================="
echo "#Script Name:"
echo "#By:"
echo "#Purpose:"
echo "#:Command Line: picoc"
echo "#================================="
pico $@
this is my script. i think it is ok w/o error. but when i run it i got error. i'm using a VMBox... (1 Reply)
Discussion started by: jrdncchr
1 Replies
7. Shell Programming and Scripting
I have a text file like this:
25 raj
78 rohit
89 bhanu
58 mohit
29 mano
53 rohit
63 shiva
74 lapan
63 bhanu
what i need is a linux script to reorganize this file by adding
the relevant content(number) to the names and print only once.... please help me someone. ... (1 Reply)
Discussion started by: shan1990
1 Replies
8. Shell Programming and Scripting
Hi all,
I am trying to make a Nodemanager work in RHEL 5
I got this script from 'oraclemiddleware.wordpress.com', and made appropriate changes to suit my weblogic installation.
I keep getting the error, "line 82: syntax error: unexpected end of file".
I have checked every line to make sure all... (4 Replies)
Discussion started by: chakrv1
4 Replies
9. UNIX for Dummies Questions & Answers
Hello,
could you please help me with the following request?
I need a linux command script that does the following.
1. delete folders folder1 and folder2 located in install/users/web/folder1&2.
and also delete folder3 install/jboss/server/folder3. All these folders has many folder and files... (1 Reply)
Discussion started by: bern11
1 Replies
10. Shell Programming and Scripting
I need to create a bash script to run through crontab, to do the below job:
1- find files that are over 12 months old in /var "files are like file_201201222.mtd file_201201333.mtd
2- Tar them in /backup like: file_201201.tar.bz2 "every month in one tar file"
3- remove them after that
4- Send... (8 Replies)
Discussion started by: Ahmad M. Kamel
8 Replies
LEARN ABOUT LINUX
apachetop
apachetop(1) USER COMMANDS apachetop(1)
NAME
apachetop - display real-time web server statistics
SYNOPSIS
apachetop [-f filename] [-H hits | -T time] [-q] [-l] [-s segments] [-p] [-r secs]
DESCRIPTION
ApacheTop watches a logfile generated by Apache (in standard common or combined logformat, and generates human-parsable output in realtime.
OPTIONS
-f logfile
Select which file to watch. Specify this option multiple times to watch multiple files.
-H hits | -T time
These options are mutually exclusive. Specify only one, if any at all. They work as follows. ApacheTop maintains a table of informa-
tion internally containing all the relevant information about the hits it's seen. This table can only be a finite size, so you need
to decide how big it's going to be. You have two options. You can either: Use -H to say "remember <this many> hits" or Use -T to
say "remember all hits in <this many> seconds" The default (at the moment) is to remember hits for 30 seconds. Setting this too
large (whichever option you choose) will cause ApacheTop to use more memory and more CPU time. My experimentation finds that remem-
bering no more than around 5000 requests works well.
-q Instructs ApacheTop to keep the querystrings, not remove them.
-l Instructs ApacheTop to lowercase all URLs, thus /FOO and /foo are treated as the same and accumulate the same statistics.
-s segments
Instructs ApacheTop to only keep the first <segments> parts of the path. Trailing slashes are kept if present. Statistics are then
merged for each truncated url.
-p Instructs ApacheTop to keep the protocol (http:// usually) at the front of its' referrer strings. Normal behaviour is to remove them
to give more room to more useful information.
-r secs
Set default refresh delay, in seconds.
EXAMPLES
apachetop -f /var/logs/httpd/access.log
AUTHOR
Chris Elsworth <chris@shagged.org>
SEE ALSO
http://www.webta.org/projects/apachetop/
version 0.10 February 13, 2004 apachetop(1)