![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting remote data through shell script | armohans | Shell Programming and Scripting | 1 | 04-15-2008 09:07 PM |
| Shell script to format a .CSV data | Uday1982 | Shell Programming and Scripting | 8 | 02-04-2008 05:28 AM |
| extract data from xml- shell script using awk | nishana | Shell Programming and Scripting | 5 | 07-16-2007 10:20 AM |
| Pipe data to shell script | tomjones07 | Shell Programming and Scripting | 3 | 03-14-2007 07:50 PM |
| How to cut, concatenate data in Shell Script | vasan_srini | Shell Programming and Scripting | 2 | 12-07-2005 04:41 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
shell script for log files data!
Hi Team,
please write a shell script. It is for veritas netbackup logs. The result we currently have is a single file for each day's backups. we will keep the files in the directory and the file names are like below mentioned. example :/opt/openv/netbackup/reports/Daily/NB_success*. The No of files are above 2000 fiels are there. The files contains like below mentioned : SAP_DV4_Archive 11/18/06 18:17(2) Billing_Grv 11/07/06 01:07 SAP_E4D_Archive 11/18/06 18:38 SAP_E4D_Database none Granv_Clients 11/07/06 03:37(8) SAP_E6T_Database none SAP_FID_Archive 11/18/06 18:17(2) SAP_FID_Database none SAP_FIP_Archive 11/18/06 18:08(2) SAP_FIP_Database none SAP_FIS_Archive 11/18/06 18:20(2) SAP_FIS_Database x SAP_O1D_Archive i SAP_O1D_Database i SAP_P6D_Archive 11/18/06 18:40 The first column will contain the archive name and next column will have the date and time if the bacup success otherwise it will have 'x' or 'i','none'. please write a script and the reuslt should be as given below. if you writen a shell script with name status.sh. the script should take flags like as given below. 1. SAP_DV4_Archive backups for the last month or year successful backups example : status.sh -m=05 -y=06 -p=SAP_E4D_Archive script name status.sh -m month -y year -p backup policy name You could include a "summary" option that will count up the number of input files as a baseline and report that SAP_E4D_Archive ran successfully on 26 of 31 days. Thanks & Regards Venkat |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|