01-31-2020
To make the situation clear, this thread is closed till the OP replies to the questions of the moderator
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to get the line count of the file from the 2nd line of the file ? The first line is header so want to skip that.
Thanks. (8 Replies)
Discussion started by: smc3
8 Replies
2. UNIX for Dummies Questions & Answers
I have a file that will sometimes contain a pattern. The pattern is this:
W/D FRM CHK 00
I want to find any lines with this pattern, delete those lines, and also delete the line above and the line below. (1 Reply)
Discussion started by: nickg
1 Replies
3. Shell Programming and Scripting
I have a file that will sometimes contain a pattern. The pattern is this:
FRM CHK 0000
I want to find any lines with this pattern, delete those lines, and also delete the line above and the line below. (4 Replies)
Discussion started by: nickg
4 Replies
4. Shell Programming and Scripting
#!/usr/bin/perl
use Shell;
open THEFILE, "C:\galileo_integration.txt" || die "Couldnt open the file!";
@wholeThing = <THEFILE>;
close THEFILE;
foreach $line (@wholeThing){
if ($line =~ m/\\0$/){
@nextThing = $line;
if ($line =~ s/\\0/\\LATEST/g){
@otherThing =... (2 Replies)
Discussion started by: nmattam
2 Replies
5. Shell Programming and Scripting
Hi,
I have created one shell script in which it will count number of "~" tilda charactors from each line of the file.But the problem is that i need to count each line count individually, that means. if line one contains 14 "~"s and line two contains 15 "~"s then it should give an error msg.each... (3 Replies)
Discussion started by: Ganesh Khandare
3 Replies
6. Shell Programming and Scripting
Hi,
I have got the below requirement. please suggest.
I have a file like,
Processing Item is:
/data/ing/cfg2/abc.txt
/data/ing/cfg3/bgc.txt
Processing Item is:
/data/cmd/for2/ght.txt
/data/kernal/config.klgt.txt
I want to process the above file to get the output file like,
... (5 Replies)
Discussion started by: rbalaj16
5 Replies
7. Shell Programming and Scripting
I have a directory of files, each with a variable (though small) number of lines. I would like to go through each line in each file, and print the:
-file name
-line number
-number of matches to the pattern /comp/ for each line.
Two example files:
cat... (4 Replies)
Discussion started by: pathunkathunk
4 Replies
8. Shell Programming and Scripting
I am trying to combine lines with these conditions:
1. First line starts with text of "libname VALUE db2 datasrc" where VALUE can be any text.
2. If condition1 is met then continue to combine lines through a line that ends with a semicolon.
3. Ignore case when matching patterns and remove any... (5 Replies)
Discussion started by: Wes Kem
5 Replies
9. Shell Programming and Scripting
Hello,
I have been working on Awk/sed one liner which counts the number of occurrences of '|' in pipe separated lines of file and delete the line from files if count exceeds "17".
i.e need to get records having exact 17 pipe separated fields(no more or less)
currently i have below :
awk... (1 Reply)
Discussion started by: ketanraut
1 Replies
10. UNIX for Beginners Questions & Answers
Input file:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 (6 Replies)
Discussion started by: Sagar Singh
6 Replies
dlclose(3C) dlclose(3C)
NAME
dlclose() - close a shared library
SYNOPSIS
[flag ... ] file ... [library]...
Multithread Usage
This routine is thread-safe.
NOTE: The dynamic loader serializes the loading and unloading of shared libraries in multithreaded applications using a recursive pthread
mutex lock. See the for more information.
DESCRIPTION
is one of a family of routines that give the user direct access to the dynamic linking facilities (using the option on the compiler or com-
mand line). disassociates a shared object previously opened by from the current process. Once an object has been closed using its symbols
are no longer available to All objects loaded automatically as a result of invoking on the referenced object (see dlopen(3C)) are also
closed. handle is the value returned by a previous invocation of
RETURN VALUE
If the referenced object was successfully closed, returns If the object could not be closed, or if handle does not refer to an open object,
returns a non-0 value. More detailed diagnostic information is available through
ERRORS
If fails, a subsequent call to returns one of the following values.
Cannot apply relocation in library.
Cannot close library due to remaining dependencies.
Invalid handle.
Out of memory.
failed on entry to or exit from
failed on exit from
failed on entry to
Unknown handle.
WARNINGS
A successful invocation of does not guarantee that the objects associated with handle have actually been removed from the address space of
the process. Objects loaded by one invocation of may also be loaded by another invocation of The same object may also be opened multiple
times. An object is not removed from the address space until all references to that object through an explicit invocation have been closed
and all other objects implicitly referencing that object have also been closed.
Once an object has been closed by referencing symbols contained in that object can cause undefined behavior.
SEE ALSO
dlerrno(3C), dlerror(3C), dlopen(3C), dlsym(3C).
Texts and Tutorials
(See the option)
(See manuals(5) for ordering information)
dlclose(3C)