Sponsored Content
Full Discussion: Prepare file run report
Top Forums Shell Programming and Scripting Prepare file run report Post 302922791 by member2014 on Tuesday 28th of October 2014 09:17:57 AM
Old 10-28-2014
Error files are also in the same folder:

Processed files:
Code:
dev/processed>ls *.txt
DEPARTMENT_20140911.txt  EMPLOYEE_20140915.txt  PRSNL_INFO_20140911.txt  SALARY_20140911.txt  SAL_HIKE_20140911.txt

Error files:
Code:
dev/processed>ls *err*
DEPARTMENT_20140911.txt.error.dat  EMPLOYEE_20140915.txt.error.dat  SALARY_20140911.txt.error.dat

I get all files as processed successfully:
Code:
dev/processed>ls *.txt | awk     'BEGIN          {print "FILE NAME\tStatus\n-------------------------------------"}
>	{gsub(/_[0-9]*$/, "", $1); OUT[$1]}
>   /error/        {OUT[$1]++}
>   END            {for (i in OUT) print i, OUT[i]?"- has error":"- success"}
>   ' FS="." OFS="\t"
FILE NAME       Status
-------------------------------------
PRSNL_INFO      - success
EMPLOYEE        - success
DEPARTMENT      - success
SAL_HIKE        - success
SALARY  - success

 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

prepare log for access

I need help with one of my log files I got following format: This is only a smal part of the file ! ......... -------------------------------------- 2003-08-05 12:23:13.939781 logNo : 1380008 Server started - Activate; 10.48.4.51 -------------------------------------- 2003-08-05 ... (4 Replies)
Discussion started by: joerg
4 Replies

2. HP-UX

Unix sheel script to run report

Hi All, I have a report which I am running from unix shell script using CONCSUB utility. Just for testing I put the order number in shell script as ord_low and ord_high. But Actually what is going to happen is that the order numbers will be in a file say a.txt and this CONCSUB should... (0 Replies)
Discussion started by: isingh786
0 Replies

3. Shell Programming and Scripting

need help on unix script to run report

Hi All, I have a report which I am running from unix shell script using CONCSUB utility. Just for testing I put the order number in shell script as ord_low and ord_high. But Actually what is going to happen is that the order numbers will be in a file say a.txt and this CONCSUB... (2 Replies)
Discussion started by: isingh786
2 Replies

4. Shell Programming and Scripting

How can i prepare a file by comparing two other files?

File 1 data: TestA TestB TestC File 2 data: TestA TestD TestE My Output File (pick all from both and create a file without duplicate data) ---------------------------------------------------------------------- TestA TestB TestC (3 Replies)
Discussion started by: manmohanpv
3 Replies

5. UNIX for Dummies Questions & Answers

prepare a perl tuts

Hi I am working on perl for last 3 yrs and as part of knowledge sharing i have been told to conduct sessions with other teams.Only 1 session with basic details. My problem is i am not sure what all should i cover in this tut ? because i learned perl on my own. so i am not sure where to start... (4 Replies)
Discussion started by: zedex
4 Replies

6. Red Hat

Modprobe prepare new IP address

Hello, I m working on virtualization and saved the templates in virtual server. On creating the new Virtual machine or linux system, is there a way where during booting, it should prompt for new IP address, gateway, DNS and hostname? Or is there any configuration in linux where we can modify... (5 Replies)
Discussion started by: alnhk
5 Replies

7. Shell Programming and Scripting

Dynamically prepare the condition using flat file sdata

I have a file in which the data looks like A,B My output should be T1.A=T2.A AND T1.B=T2.B If my input is A,B,C My output should be T1.A=T2.A AND T1.B=T2.B AND T1.C=T2.C Currently I am automating my databae script and strucked with this part.Not able to search the... (2 Replies)
Discussion started by: bikky6
2 Replies

8. Shell Programming and Scripting

Shell script run in a case statement call to run a php file, also Perl

Linux System having all Perl, Python, PHP (and Ruby) installed From a Shell script, can call a Perl, Python, PHP (or Ruby ?) file eg eg a Shell script run in a case statement call to run a php file, also Perl or/and Python file??? Like #!/usr/bin/bash .... .... case $INPUT_STRING... (1 Reply)
Discussion started by: hoyanet
1 Replies
VIRT-PKI-VALIDATE(1)					      Virtualization Support					      VIRT-PKI-VALIDATE(1)

NAME
virt-pki-validate - validate libvirt PKI files are configured correctly SYNOPSIS
virt-pki-validate DESCRIPTION
This tool validates that the necessary PKI files are configured for a secure libvirt server or client using the TLS encryption protocol. It will report any missing certificate or key files on the host. It should be run as root to ensure it can read all the necessary files EXIT STATUS
Upon successful validation, an exit status of 0 will be set. Upon failure a non-zero status will be set. AUTHOR
Richard Jones BUGS
Report any bugs discovered to the libvirt community via the mailing list "http://libvirt.org/contact.html" or bug tracker "http://libvirt.org/bugs.html". Alternatively report bugs to your software distributor / vendor. COPYRIGHT
Copyright (C) 2006-2012 by Red Hat, Inc. LICENSE
virt-pki-validate is distributed under the terms of the GNU GPL v2+. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE SEE ALSO
virsh(1), online PKI setup instructions "http://libvirt.org/remote.html" libvirt-1.1.1 2013-05-27 VIRT-PKI-VALIDATE(1)
All times are GMT -4. The time now is 08:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy