07-10-2013
/\W searches all "W" in the file. Not able to find special character or non-word characters.
10 More Discussions You Might Find Interesting
1. Programming
hey there
im a bit stuck on executing commands that include the special character '?'. can someone recommend a way on how i would be able to execute it?? i thought the glob function could be useful (still mite be) but upon entering the command
'ls pars?' it listed all the files in the... (1 Reply)
Discussion started by: mile1982
1 Replies
2. Shell Programming and Scripting
Hi,
I am trying to unload file from a database. Which contains few lines with the character below. Rest of the data was unloaded appropriately.
a) What does this below character means?
b) How can i remove it,
I already have sed '/^$/d'
c) Will this effect the file by any means... (4 Replies)
Discussion started by: tostay2003
4 Replies
3. UNIX for Advanced & Expert Users
All,
I am trying to grep "-----" from a test when i use this i am getting the below error. What is the reason for this ?????... How can i over come this
##) echo "----------------- test_sys_job -----------------" | grep "-----------------"
grep: illegal option -- -
grep: illegal... (6 Replies)
Discussion started by: arunkumar_mca
6 Replies
4. Shell Programming and Scripting
Hi,
In the shell script, i need to remove the special charater "\" with "\\". For example, i need to replace "D:\FXT\ABC.TXT" with "D:\\FXT\\ABC.TXT".
However, when trying to do something like , i get the below error :-
-->echo "D:\FXT\ABC.TXT" | sed -e 's#\#\\#g'
sed: 0602-404 Function... (7 Replies)
Discussion started by: amit_arora
7 Replies
5. Shell Programming and Scripting
I have below line in a unix file, I want to delete one character after "Â".
20091020.Non-Agency CMO Daily Trade Recap Â~V Hybrids
The result should be :
20091020.Non-Agency CMO Daily Trade Recap  Hybrids
i dont want to use "~V" anywhere in the sed command or any other command, just remove... (1 Reply)
Discussion started by: mohsin.quazi
1 Replies
6. Shell Programming and Scripting
I am seeing an special character in my file
when i do the
cat filename | od-bc
I see a value of 376 for that special character.
I would like to find the decimal value for the character.
For example the decimal value for ctrl-Y is char(25).
Appreciate help on this. (11 Replies)
Discussion started by: pinnacle
11 Replies
7. Shell Programming and Scripting
When editing a file, vi displays a special character as ^L. Can you tell me the escaped character to be used in awk? And can that escaped character be used in a regexp in both sed and awk? (7 Replies)
Discussion started by: dmesserly
7 Replies
8. Shell Programming and Scripting
Hi,
How to use * in call to pl/sql block from shell script?
The line "select * from" is causing all files and directiores to show up in email notification but if I give all column names then it works,
Please let me know how to use '*' instead of giving all column names, in other wirds how to... (2 Replies)
Discussion started by: sandy162
2 Replies
9. Shell Programming and Scripting
Hello,
I do have folders containing having funny strings in their names and one space.
First, I do remove the funny strings and replace the space by an underscore.
find . -name '* *' | while read file;
do
target=`echo "$file" | sed 's/... (2 Replies)
Discussion started by: tempestas
2 Replies
10. UNIX for Beginners Questions & Answers
Hi,
on ksh
What does the following do?
grep -v "toolbox" $home_oracle/.profile >$home_oracle/.profile.$$ Thanks.
Please use CODE tags as required by forum rules! (3 Replies)
Discussion started by: big123456
3 Replies
DLSYM(3) BSD Library Functions Manual DLSYM(3)
NAME
dlsym -- get address of a symbol
SYNOPSIS
#include <dlfcn.h>
void*
dlsym(void* handle, const char* symbol);
DESCRIPTION
dlsym() returns the address of the code or data location specified by the null-terminated character string symbol. Which libraries and bun-
dles are searched depends on the handle parameter.
If dlsym() is called with a handle, returned by dlopen() then only that image and any libraries it depends on are searched for symbol.
If dlsym() is called with the special handle RTLD_DEFAULT, then all mach-o images in the process (except those loaded with dlopen(xxx,
RTLD_LOCAL)) are searched in the order they were loaded. This can be a costly search and should be avoided.
If dlsym() is called with the special handle RTLD_NEXT, then dyld searches for the symbol in the dylibs the calling image linked against when
built. It is usually used when you intentionally have multiply defined symbol across images and want to find the "next" definition. It
searches other images for the definition that the caller would be using if it did not have a definition. The exact search algorithm depends
on whether the caller's image was linked -flat_namespace or -twolevel_namespace. For flat linked images, the search starts in the load
ordered list of all images, in the image right after the caller's image. For two-level images, the search simulates how the static linker
would have searched for the symbol when linking the caller's image.
If dlsym() is called with the special handle RTLD_SELF, then the search for the symbol starts with the image that called dlsym(). If it is
not found, the search continues as if RTLD_NEXT was used.
If dlsym() is called with the special handle RTLD_MAIN_ONLY, then it only searches for symbol in the main executable.
RETURN VALUES
The dlsym() function returns a null pointer if the symbol cannot be found, and sets an error condition which may be queried with dlerror().
NOTES
The symbol name passed to dlsym() is the name used in C source code. For example to find the address of function foo(), you would pass "foo"
as the symbol name. This is unlike the older dyld APIs which required a leading underscore. If you looking up a C++ symbol, you need to use
the mangled C++ symbol name.
SEE ALSO
dlopen(3) dlerror(3) dyld(3) ld(1) cc(1)
August 28, 2008