Sponsored Content
Full Discussion: Hi..Need help..
Top Forums UNIX for Dummies Questions & Answers Hi..Need help.. Post 302200817 by chrysSty on Friday 30th of May 2008 05:59:41 AM
Old 05-30-2008
Hi..Need help..

Hi,

Please help me.

This script is responsible of storing all the report in a line.

penfilename[i]=`echo ${OUTFILE}*"(${daterange})".csv`

OUTFILE=${OUT_DIR}"/PenetrationReport" and the OUT_DIR is this -

OUT_DIR=${MMHOME}/data/preticketing/penrpt.

The example of the generated report is this:

Code:
/app/rms/rms/data/preticketing/penrpt/PenetrationReport_(BAKER-10)_ByBuyer_(03-FEB-2008_31-JAN-2009).csv 
/app/rms/rms/data/preticketing/penrpt/PenetrationReport_(BAKER-10)_ByVendor_(03-FEB-2008_31-JAN-2009).csv

Now I want to remove the Output directory in the generated report. How can I do that?

I tried this Script:

Code:
penfilename[i]=`echo PenetrationReport*"(${daterange})".csv`

But it's not working because it gives me an output of:

Code:
PenetrationReport*(03-FEB-2008_31-JAN-2009).csv

The other reports were no longer generated. The loop did not work. What should I do to remove the output directory but the looping still works?

I've also attached the script that I was talking about. Hope it would help.

Thanks

Last edited by Yogesh Sawant; 05-30-2008 at 08:20 AM.. Reason: added code tags
 
SKYWALKCTL(8)						      System Manager's Manual						     SKYWALKCTL(8)

NAME
skywalkctl - Interact with Skywalk subsystem SYNOPSIS
skywalkctl [ -f OUTFILE ] <command> [ <args> ] DESCRIPTION
skywalkctl is a utility used to interact with the Skywalk subsystem, which provides the plumbing between various networking-related pieces of software and hardware. It should only be used in a test and debug context. Using it for any other purpose is strongly discouraged. OPTIONS
-f OUTFILE Redirect output to the file specified by OUTFILE, instead of stdout. COMMANDS
tree [ ROOT-UUID ] Output JSON representing a tree of all current Skywalk objects. If provided, the tree will start at ROOT-UUID instead of the global root. channel-stats [ --interval, -I interval ] Display performance and error statistics for all currently registered Skywalk channels. -I interval Re-print channel statistics with a period of interval seconds, until the SIGINT signal is received. list-providers [ --details, -D ] Print a human-readable table of Skywalk nexus providers and their child instances -D Provide more details about each provider netns [ -a ] | [ -i, --ip IP -p, --proto PROTO ] Print information about L4 port reservations for the given <IP, PROTO> where IP is either an IPv4/v6 address or 'global', and PROTO is the common name for a transportation-layer protocol ('tcp' or 'udp'). -a ignore any other specifiers and list the contents of every namespace, one after another SEE ALSO
netstat(1), lsof(8) August 31, 2016 SKYWALKCTL(8)
All times are GMT -4. The time now is 04:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy