Hi Everyone,
I would like to know how to find a file which was created in the period of 20+ hours, in most common unix OS, the parameter -mmin is not supported (i.e, HP-UX, Solaris, LInux, AIX)
Could you help on this ?? (3 Replies)
I want to find out Row which starts with, the user specified details to a script.
In general I know what command to be given.
awk '$0~/^Vi/' BReject
But I need to pass on $1 param of command line at the place of 'Vi'.
I tried with -v subst=$1
awk -v subst=$1 '$0~/^subst/' BReject
But it... (5 Replies)
Hi All,
Not sure if this would be in a dummies sectiin or advanced. I'm looking for a script if someone has doen something like this.
I have list of files -
adc_earnedpoints.20070630.txt
adc_earnedpoints.20070707.txt
adc_earnedpoints.20070714.txt
adc_earnedpoints.20070721.txt... (1 Reply)
hi
i have a file contains data
Line timeout:
START->SIGNON_REPLY,
SIGNON_REPLY->SIGNON,
Received SOT req
SOT request:
SIGNON->SOT_REPLY,
SOT_REPLY->DATA_RECEIVE,
DATA_RECEIVE->EOD,
i need to write into one line , separated by commas
please help
thanks
Satya (2 Replies)
I want to change the extensions of a folder full of files (some of the files are located in subfolders as well) to another extension, but instead of replacing the files I want the new files to be copied into a newly created folder.
Here is the folder structure:
/Downloads/3eb... (3 Replies)
I have a very basic shell script right now, and I am trying to run grep from inside of it. It looks like this:
#!/bin/sh
filename=$1
echo "The program that you will be editing is called $filename"
grep "//" $filename
The name of said file is "myscript" for right now. I am executing it on... (1 Reply)
Dear All,
I have a question that's been difficult to get an answer to.
I often write command line loops, e.g. find files, print name, grep for term, apply sed, etc
I use both zsh and bash.
When I write a loop e.g.
for line in `more myfile.txt`
> do
> echo $line
> done
but... (2 Replies)
I have this tcsh code that I want to convert to a bash script. Basically it accepts command line arguments supplied by the user and stores them, so they can be used to run a C++ program.
set arg_browseDir_inFileLst = ""
set allArgsUpCase = `echo "$*" | tr '' ''`
set opt_browseDir_flag =... (17 Replies)
Hi,I have a script which is given below :#!/bin/bash. ini_script.shdb2 connect to $DB_NAME user $DB2_UID using $DB2_PASSWORDfor file in `ls -1 ./sql/ddw/`do echo "Executing the file $file" echo db2 -tvf $filedonedb2 quiti want this script to accept directorie's names present in... (1 Reply)
I am using a shell script in fedora linux. While calling to the shell I am also passing an argument (var1=0.77) like shown below
sh gossip.sh var1=0.77
in the shell following command is written (which doesn't work)
sed - i -e 's@prob=@prob="$var1";//@g' file.txt
Actually i want the... (7 Replies)
Discussion started by: Fakhar Hassan
7 Replies
LEARN ABOUT REDHAT
amreport
AMREPORT(1) General Commands Manual AMREPORT(1)NAME
amreport - generate a formatted output of statistics for an Amanda run
SYNOPSIS
amreport [ config ] [ -l logfile ] [ -f outputfile ] [ -p postscriptfile ]
DESCRIPTION
Amreport generates a summary report of an amanda(8) backup run. If no configuration name is specified, amanda.conf is read from the cur-
rent directory.
See the amanda(8) man page for more details about Amanda.
OPTIONS
config Name of the configuration to process.
[-l logfile]
Name of the log file to parse to generate the report. If a log file is not specified, it defaults to the file:
logdir/log
where logdir is the log directory defined in amanda.conf.
[-f outputfile]
Normally, amreport sends the report via e-mail to the mailto user as defined in the amanda.conf file. If outputfile is specified,
then the report is put in outputfile.
[-p postscriptfile]
Send the postscript output to the file postscriptfile instead of to the lpr(1) command. This option has an effect only if the lbl-
templ directive is specified in amanda.conf.
LABEL PRINTING
Amanda can print postscript labels describing the contents of tape(s) written in a run. The labels are designed to be folded and inserted
into the tape case along with the tape or hole punched and put in a 3-ring binder. Various label templates are provided to format data for
different tape sizes.
The information printed varies slightly between label templates due to size constraints. Labels contain one line for each host/file-system
pair and may also contain the file number on the tape, the level of the dump, the original size of the dump and the size of the (possibly
compressed) tape file.
Add the lbl-templ parameter to the tapetype definition in amanda.conf to enable labels. If you don't add this line to your tapetype defi-
nition, amreport will not print tape labels.
You may use the printer keyword in amanda.conf to print to other than the system default printer.
TEMPLATES
Amanda provides label templates for the following tape types. These are pretty generic labels and should be easy to customize for other
tape types or particular site needs.
* ExaByte 8mm tapes
* DAT 4mm tapes
* DLT tapes
* 3-ring binder
The 3-ring binder type is the most generic. It may be used to make a hardcopy log of the tapes.
SEE ALSO amanda(8), amflush(8)AMREPORT(1)