dear friends,
I have a large size file containg two fields data
like this
*** ****
122 222
***** *****
***** *****
232 233
i have file like this.
i want to remove blank lines from file .
i think awk is servive this problem
i wrote a awk command but the error is... (3 Replies)
Dear friends,
I am writing shell script in csh .
i want to make arthimatic operation in csh.
i wrote sysntax like this.
set val = 230
set tmp = `0.1 * $val + 300`
echo $tmp
but it is not working .
anyone please give me syntax. (3 Replies)
I am calculating a time and appending a space in front of it to get only certain records in a file because the times are represented in HH:II:SS format and I don't want to see anything other than the actual hour and minute combination (hence appending the space to the front of the time). My... (9 Replies)
Hey guys, i am having a problem in my query statement. I am using Mysql in Netbeans and c++.
What i am trying to do is for the user to enter a certain value and then the program will store the value into the database...
string NewMovie ;
Cout <<" Enter your new movie : " << endl ;
... (1 Reply)
Hi guys,
Basically I'm trying to write a CShell script that calls an awk script on a given directory (given in command-line). I keep getting a syntax error with my code though:
#!/bin/csh
set dir = $ARGV
foreach file ( $dir/* )
set output = 'awk -f /Desktop/aal $file'
echo... (3 Replies)
Hi Guys,
When below code is executed in script, I get desired output in output file.
awk 'NR >= $start_line && NR <= 3' master_scriptlist.txt > $driver1/scriptlist.txtBut when i replace 3 with a variable end_line=3, I do not get ouput. See code below. Is there any problem with syntax
awk... (6 Replies)
awk -v sw="lemons|dogs" 'NR>100 && NR<200 BEGIN { c=split(sw,a,""); } { for (w in a) { if ($0 ~ a) d]++; } }
END { for (i in a) { o=o (a"="(d]?d]:0)","); }
sub(",*$","",o); print o;
}' /home/jahitt/data.txt
what am i doing wrong with the above code? im pretty sure the issue is in the... (6 Replies)
Hi
Below script is throwing an error:
repos=root
filename=/home/admin/Desktop/authz
case $repos in
root)
root_folder="\"
do
sed "/$root_folder/a $username = $access" $filename
done
;;
esac
exit 0
Error:
./new1.sh: line 77: syntax error near unexpected token `do' (1 Reply)
Hi All,
I have a syntax problem with a procedure in oracle. I am looking to just produce the number of rows
from each table located in the HR schema nothing complex. This procedure works great up to dbms_output.put_line(tab_var); where it lists the names of each table in the user schema.
My... (5 Replies)
Discussion started by: bdby
5 Replies
LEARN ABOUT REDHAT
amplot
AMPLOT(8) System Manager's Manual AMPLOT(8)NAME
amplot - visualize the behavior of Amanda
SYNOPSIS
amplot [ -c ] [ -e ] [ -g ] [ -l ] [ -p ] [ -t T ] amdump_files
DESCRIPTION
Amplot reads an amdump output file that Amanda generates each run (e.g. amdump.1) and translates the information into a picture format
that may be used to determine how your installation is doing and if any parameters need to be changed. Amplot also prints out amdump lines
that it either does not understand or knows to be warning or error lines and a summary of the start, end and total time for each backup
image.
Amplot is a shell script that executes an awk program (amplot.awk) to scan the amdump output file. It then executes a gnuplot program
(amplot.g) to generate the graph. The awk program is written in an enhanced version of awk, such as GNU awk (gawk version 2.15 or later)
or nawk.
During execution, amplot generates a few temporary files that gnuplot uses. These files are deleted at the end of execution.
See the amanda(8) man page for more details about Amanda.
OPTIONS -c Compress amdump_files after plotting.
-e Extend the X (time) axis if needed.
-g Direct gnuplot output directly to the X11 display (default).
-p Direct postscript output to file YYYYMMDD.ps (opposite of -g).
-l Generate landscape oriented output.
-t T Set the right edge of the plot to be T hours.
The amdump_files may be in various compressed formats (compress, gzip, pact, compact).
INTERPRETATION
The figure is divided into a number of regions. There are titles on the top that show important statistical information about the configu-
ration and from this execution of amdump. In the figure, the X axis is time, with 0 being the moment amdump was started. The Y axis is
divided into 5 regions:
QUEUES: How many backups have not been started, how many are waiting on space in the holding disk and how many have been transferred
successfully to tape.
%BANDWIDTH: Percentage of allowed network bandwidth in use.
HOLDING DISK: The higher line depicts space allocated on the holding disk to backups in progress and completed backups waiting to be
written to tape. The lower line depicts the fraction of the holding disk containing completed backups waiting to be written to tape
including the file currently being written to tape. The scale is percentage of the holding disk.
TAPE: Tape drive usage.
%DUMPERS: Percentage of active dumpers.
The idle period at the left of the graph is time amdump is asking the machines how much data they are going to dump. This process can take
a while if hosts are down or it takes them a long time to generate estimates.
AUTHOR
Olafur Gudmundsson ogud@tis.com
Trusted Information Systems
formerly at University of Maryland, College Park
BUGS
Reports lines it does not recognize, mainly error cases but some are legitimate lines the program needs to be taught about.
SEE ALSO amanda(8), amdump(8), gawk(1), nawk(1), awk(1), gnuplot(1), sh(1), compress(1), gzip(1)4th Berkeley DistributionAMPLOT(8)