I have the following report (report.txt) file (see attached).
I would like to check the file and if the field is error, then showing error message at output.
1. In the report, 1st, 2st and 3nd line can be ignore to check
2. start to check line 4 (each field use "," to split
- 1st field should be 5 digits (0-9)
- 2nd field should be A-Z
- 3rd field should be 5 digits (0-9)
- 4th field should be one char (Y or N)
- 5th field should be 00:00 to 99:99 or 0:00 to 9:99
- 6th field should be number or with "."
and so on....(i can do it by myself if you can provide above sample for me)
- until last two field, should be 3 char (A-Z)
3. At the end of the report, the line should be "*** End of Report *** ,,,,,,,,,,,,,,,,,,,,,,,,"
If any error for each field, just show the line number is ok for me.
Hi,
I'm currently trying to write a script that checks a log file for certain errors. Once checked it then records the filesize in another file. All this is fine, my problem is that the next time I do my error check I only want to check from previously recorded filesize to the end of file. I'm... (2 Replies)
I want to check the files in particular directory are more that 0 Bytes i.e, Non zero byte file. The script should print a msg if all the files in that directory are empty( 0 Byte). (2 Replies)
Hi All,
I am very new to Shell scripting...
I got a requirement.
I will have few text files(data files) in a particular directory. they will be with .txt extension. With same name, but with a different extension control files also will be there. For example, Sample_20081001.txt is the data... (4 Replies)
Hi All,
I am new to unix scripting, please help me in completing this exercise,
I have a scenario as follows,
1. i have a text file(snapshot.txt) consisting of directory names, and file
size separated by comma as shown below:
snapshot.txt data:
... (1 Reply)
All,
Is there a way to keep checking for a file over and over again in the same script for an interval of time?
Ie
If {
mail -user
continue checking until file arrives
file arrives
tasks
exit
I don't want the script to run each time and email the user each time a file... (4 Replies)
Hi,
I have 9 files which are generated dynamically & if there is a some condition which doesn't meet the criteria then file is not created or is of zero size.
so further i am unable to consolidate the files based on following code 1
awk -F, -v ptime="201407" 'FNR==1... (3 Replies)
HI Guys,
I have some 8 files with different name and extensions. I need to check if they are present in a specific folder or not and also want that script to show me which all are not present. I can write if condition for each file but from a developer perspective , i feel that is not a good... (3 Replies)
Hello,
I'm looking to check only the first line of a file to see if it is a format string, like
# -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -\*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2if the first line is anything else, insert the above string.
I'd... (3 Replies)
hi all,
trying this using shell/bash with sed/awk/grep
I have two files, one containing one column, the other containing multiple columns (comma delimited).
file1.txt
abc12345
def12345
ghi54321
...
file2.txt
abc1,text1,texta
abc,text2,textb
def123,text3,textc
gh,text4,textd... (6 Replies)
Discussion started by: shogun1970
6 Replies
LEARN ABOUT DEBIAN
aerptidx
aerptidx(5) File Formats Manual aerptidx(5)NAME
aerptidx - aegis report index file format
SYNOPSIS
/usr/share/aegis/report.index
/usr/share/aegis/report.local
DESCRIPTION
The report index file is used to store pointers to report scripts, and descriptions of the reports.
When searching for a report, the aer(1) command searches down the AEGIS_PATH looking for report.index files, and searching them for the
report named.
CONTENTS
where = [{ ... }];
This field is a table relating report name to file name. The structure is as follows:
name = string;
The name of a report. The command line argument naming scheme is used, to provide abbreviatable names.
description = string;
A brief description of the report. It should not be very long, one or two lines at most.
filename = string;
The name of the file containing the report script. If a relative path is given, it will be interpreted to be relative to
the directory containing the report.index file.
SEE ALSO aer(1) report generator
aegis(5)
aegis file format syntax
COPYRIGHT
aegis version 4.24.3.D001
Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Peter
Miller
The aegis program comes with ABSOLUTELY NO WARRANTY; for details use the 'aegis -VERSion License' command. This is free software and you
are welcome to redistribute it under certain conditions; for details use the 'aegis -VERSion License' command.
AUTHOR
Peter Miller E-Mail: millerp@canb.auug.org.au
//* WWW: http://www.canb.auug.org.au/~millerp/
Reference Manual Aegis aerptidx(5)