12-05-2013
Finding difference in between two array's of strings
Hi,
Can anybody help me in finding the difference between two array elements with the help of code pls.
purge=("Purge Concurrent Request and/or Manager Data" "Purge Signon Audit data" "Purge Obsolete Workflow Runtime Data" "Purge Logs and Closed System Alerts")
purge_1=("Purge Obsolete Workflow Runtime Data" "Purge Logs and Closed System Alerts")
Regards
Bala
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have two files A.txt and B.txt. And i have the following attributes in both the files.
<date and time> <a unique id>
For eg:
<2007 May 30 20:29:36:034 GMT> <ID1> in A.txt
<2007 May 30 20:42:36:038 GMT> <ID1> in B.txt
Now, i need to find the time difference... (0 Replies)
Discussion started by: padma.raajesh
0 Replies
2. Shell Programming and Scripting
Hi,
i'm trying to compare two directories in Unix.
I need a recursive search ie my shell script should also compare common files in those two directory and so on...
any clues.. ?? (2 Replies)
Discussion started by: yayati
2 Replies
3. Shell Programming and Scripting
Hi I made a post earlier but now my problem has become a lot more complicated.
So I have a file that looks like this:
Name 1 13 94 1 AGGTT
Name 1 31 44 1 TTCCG
Name 1 13 94 2 AAAAATTTT
Name 1 41 47 2 GGGGGGGGGGG So the file is tab delimited and what I want to do is find... (8 Replies)
Discussion started by: kylle345
8 Replies
4. Shell Programming and Scripting
I have a list of strings stored in $Lst
Example
set Lst = "John Fred Kate Paul"
I want to return 4 in this case. (1 Reply)
Discussion started by: kristinu
1 Replies
5. Shell Programming and Scripting
Hi,
I need to search for a multiple line pattern and remove it
the pattern is search for
(ln number) <TABLE name=*>
and if 3 lines below that the line is
(ln number) </TABLE>
Then remove those 4 lines.
Thank you (14 Replies)
Discussion started by: legolad
14 Replies
6. Shell Programming and Scripting
Hi,
I have two files
one with 12486 lines
second one with 13116
As per the comparsion between two files the count have 630 difference
I used diff command to find the difference between two files but it's not understandable
could any one suggest any command to get 630 records in a new... (4 Replies)
Discussion started by: thelakbe
4 Replies
7. Shell Programming and Scripting
Hi,
My date is coming as
STARTDATE=Sun Jul 15 00:34:23 2012
ENDDATE=Sun Jul 15 00:50:04 2012I want difference between these two dates,anyone's helps will be appriciated.
Thanks
Prasoon (3 Replies)
Discussion started by: prasson_ibm
3 Replies
8. Shell Programming and Scripting
Hi!
I'd like to know if it is possible for a command to find the first difference between two large files, output that line from both file and stop, so no need to continue after that to save some computation time.
I don't think looping through it will be efficient enough but that's the only... (6 Replies)
Discussion started by: Mojing
6 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a file1 like this:
ABAT
ABCA1
ABCC1
ABCC5
ABCC8
ABCE1
ABHD2
ABL1
CAMTA1
ACBD3
ACCN1
And I have a second file like this:
chr19 46118590 46119564 MACS_peak_1499 3100.00 chr19 46122009 46148405 CYP2B7P1 -2445
chr1 7430312 7430990... (7 Replies)
Discussion started by: a_bahreini
7 Replies
10. Shell Programming and Scripting
Legends,
I have a requirement to run the script exactly after one hour of completion of dependent script.
Eg: Script B should run after one hour on the completion of Script A.
I got the time stamps using following variables. these scripts runs in autosys
> DATE=`date +%H:%M`
>... (4 Replies)
Discussion started by: sdosanjh
4 Replies
LEARN ABOUT FREEBSD
backtrace_symbols_fd
BACKTRACE(3) BSD Library Functions Manual BACKTRACE(3)
NAME
backtrace -- fill in the backtrace of the currently executing thread
LIBRARY
library ``libexecinfo''
SYNOPSIS
#include <execinfo.h>
size_t
backtrace(void **addrlist, size_t len);
char **
backtrace_symbols(void * const *addrlist, size_t len);
int
backtrace_symbols_fd(void * const *addrlist, size_t len, int fd);
char **
backtrace_symbols_fmt(void * const *addrlist, size_t len, const char *fmt);
int
backtrace_symbols_fmt_fd(void * const *addrlist, size_t len, const char *fmt, int fd);
DESCRIPTION
The backtrace() function places into the array pointed by addrlist the array of the values of the program counter for each frame called up to
len frames. The number of frames found (which can be fewer than len) is returned.
The backtrace_symbols_fmt() function takes an array of previously filled addresses from backtrace() in addrlist of len elements, and uses fmt
to format them. The formatting characters available are:
a The numeric address of each element as would be printed using %p.
n The name of the nearest function symbol (smaller than the address element) as determined by dladdr(3) if the symbol was dynamic, or
looked up in the executable if static and the /proc filesystem is available to determine the executable path.
d The difference of the symbol address and the address element printed using 0x%tx.
D The difference of the symbol addresss and the address element printed using +0x%tx if non-zero, or nothing if zero.
f The filename of the symbol as determined by dladdr(3).
The array of formatted strings is returned as a contiguous memory address which can be freed by a single free(3).
The backtrace_symbols() function is equivalent of calling backtrace_symbols_fmt() with a format argument of %a <%n%D> at %f
The backtrace_symbols_fd() and backtrace_symbols_fmt_fd() are similar to the non _fd named functions, only instead of returning an array or
strings, they print a new-line separated array of strings in fd, and return 0 on success and -1 on failure.
RETURN VALUES
The backtrace() function returns the number of elements that were filled in the backtrace. The backtrace_symbols() and
backtrace_symbols_fmt() return a string array on success, and NULL on failure, setting errno. Diagnostic output may also be produced by the
ELF symbol lookup functions.
SEE ALSO
dladdr(3), elf(3)
HISTORY
The backtrace() library of functions first appeared in NetBSD 7.0 and FreeBSD 10.0.
BUGS
1. Errors should not be printed but communicated to the caller differently.
2. Because these functions use elf(3) this is a separate library instead of being part of libc/libutil so that no library dependencies are
introduced.
3. The Linux versions of the functions (there are no _fmt variants) use int instead of size_t arguments.
BSD
August 23, 2013 BSD