11-23-2006
hi..
It can have either NULL or empty value.
I want to identify those records having either of above values
Thanks
Suresh
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
How can I check for a field in a pipe-delimited file having a NULL value in Unix using a grep command or any other command.
Please reply (5 Replies)
Discussion started by: sureshg_sampat
5 Replies
2. HP-UX
Hello,
Below is my input file's content ( in HP-UX platform ):
ABCD120672-B21 1
ABCD142257-002 1
ABCD142257-003 1
ABCD142257-006 1
From the above, I just want to get the field of 13 characters that comes after 'ABCD' i.e '120672-B21'... . Could... (2 Replies)
Discussion started by: jansat
2 Replies
3. UNIX for Dummies Questions & Answers
the file has several date fields.for example, #2, #3,and #5 are date fields.
I want grep year '2002' just within #2 field and get all the rows which content year '2002' in the #2 field. is it possible to do this? how to do it? Thanks (2 Replies)
Discussion started by: tiff-matt
2 Replies
4. Shell Programming and Scripting
Dear All,
I have the following input file. I want to replace data with null values.
I/P File:
9022334455|2008-12-06 06:10:21|2|Error@@@|esoo8erp|
9024334432|2008-12-06 08:40:59|6|Error@@@|6y2o8e6r|
O/P File:
9022334455||2||esoo8erp|
9024334432||6||6y2o8e6r|
... (4 Replies)
Discussion started by: hanu_oracle
4 Replies
5. Shell Programming and Scripting
Hi,
I know there are lots of threads on replacing text within files, usually using sed or awk. However, I find it hard to adapt examples that I found to my specific case. I am kind of new to UNIX and have hard times learning the syntax either for sed or awk so I would appreciate any help. Here's... (5 Replies)
Discussion started by: vytenis
5 Replies
6. Shell Programming and Scripting
hi,
I would like to search for a specific string at a specific line in a file and would like to know the count of it.
eg: samp.txt
ABC 1234 BELL
HNZ 4567 RING
NNN 5673 BELL
Please help with the command to find the count of BELL in the above file samp.txt at the specific line 10 with... (7 Replies)
Discussion started by: techmoris
7 Replies
7. Shell Programming and Scripting
Hi,
I've a pipe delimited file and wanted to replace the 3rd field to 099990 where the values are null. How can I achieve it using awk or sed.
20130516|00000061|02210|111554|03710|2|205069|SM APPL $80-100 RTL|S
20130516|00000061|02210|111554|03710|2|205069|SM APPL $80-100 RTL|S... (12 Replies)
Discussion started by: rudoraj
12 Replies
8. UNIX for Dummies Questions & Answers
This could be a really dummy question.
I have a log text file.
What unix command to extract line from specific string to another specific string.
Is it something similar to?:
more +/"string" file_name
Thanks (4 Replies)
Discussion started by: aku
4 Replies
9. Shell Programming and Scripting
Hi Folks,
We have a file that has null values but there are no delimiters. So all columns are considered as a single column.
Ex:
abc def 123
abcdef1234567
hijklmn7896545
Now from "a" till "3" all are considered as a single column from the first row.
Our requirement is like, we... (2 Replies)
Discussion started by: jayadanabalan
2 Replies
10. Shell Programming and Scripting
I am trying to add a tab after the last digit in $3 in the input. The grep below is all I can think off. Thank you :)
sed -n 's/:/&/p' input
input
chr1 955542 955763AGRN-6|gc=75
chr1 957570 957852AGRN-7|gc=61.2
chr1 976034 976270AGRN-9|gc=74.5
desired output
chr1... (5 Replies)
Discussion started by: cmccabe
5 Replies
LEARN ABOUT FREEBSD
endauclass
AU_CLASS(3) BSD Library Functions Manual AU_CLASS(3)
NAME
getauclassent, getauclassent_r, getauclassnam, getauclassnam_r, setauclass, endauclass -- look up information from the audit_class database
LIBRARY
Basic Security Module Library (libbsm, -lbsm)
SYNOPSIS
#include <bsm/libbsm.h>
struct au_class_ent *
getauclassent(void);
struct au_class_ent *
getauclassent_r(struct au_class_ent *e);
struct au_class_ent *
getauclassnam(const char *name);
struct au_class_ent *
getauclassnam_r(struct au_class_ent *e, const char *name);
void
setauclass(void);
void
endauclass(void);
DESCRIPTION
These interfaces may be used to look up information from the audit_class(5) database, which describes audit event classes. Audit event
classes are described by struct au_class_ent.
The getauclassent() function will return the next class found in the audit_class(5) database, or the first if the function has not yet been
called. NULL will be returned if no further records are available.
The getauclassnam() function looks up a class by name. NULL will be returned if no matching class can be found.
The setauclass() function resets the iterator through the audit_class(5) database, causing the next call to getauclassent() to start again
from the beginning of the file.
The endauclass() function closes the audit_class(5) database, if open.
SEE ALSO
libbsm(3), audit_class(5)
HISTORY
The OpenBSM implementation was created by McAfee Research, the security division of McAfee Inc., under contract to Apple Computer, Inc., in
2004. It was subsequently adopted by the TrustedBSD Project as the foundation for the OpenBSM distribution.
AUTHORS
This software was created by Robert Watson, Wayne Salamon, and Suresh Krishnaswamy for McAfee Research, the security research division of
McAfee, Inc., under contract to Apple Computer, Inc.
The Basic Security Module (BSM) interface to audit records and audit event stream format were defined by Sun Microsystems.
BUGS
These routines cannot currently distinguish between an entry not being found and an error accessing the database. The implementation should
be changed to return an error via errno when NULL is returned.
BSD
April 19, 2005 BSD