@Scrutinizer : doesn t seem to do the right thing
@ghostdog74 : does the right thing BUT could you help me by explaining :
1. what is the purpose of the last --->1<--- in :
2. when i execute this command, the output file now includes the following :
is there any idea how NOT to include all this metadata information ?
Hi All,
I'm trying to write a ksh script to parse a file. When the "\" character is encountered, it should be removed and the next line should be concatenated with the current line. For example...
this is a test
line #1\
should be concatenated with line #2\
and line number 3
when this... (3 Replies)
Hi,
My input has much more lines, but few of them are below
pin(IDF) {
direction : input;
drc_pinsigtype : signal;
pin(SELDIV6) {
direction : input;
drc_pinsigtype : ... (3 Replies)
Good afternoon all,
I'm hoping my newbie question can help bolster someone's street_cred.sh today.
I'm trying to "fingerprint" SQL on its way into the rdbms for a benchmarking process (so I can tie the resource allocation back to the process more precisely).
To do this, I'm essentially... (4 Replies)
Hello everyone
Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried
sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
I'd like to put paragraph breaks \n\n randomly between 5 - 10 occurrences of the dot character (.), for an entire text file. How to do that?
In other words, anywhere between every 5 -10 sentences, a new paragraph will generate. There are no other uses of the (.) except for sentence breaks in... (11 Replies)
Discussion started by: p1ne
11 Replies
LEARN ABOUT OPENDARWIN
isaexec
isaexec(3C) Standard C Library Functions isaexec(3C)NAME
isaexec - invoke isa-specific executable
SYNOPSIS
#include <unistd.h>
int isaexec(const char *path, char *const argv[], char *const envp[]);
DESCRIPTION
The isaexec() function takes the path specified as path and breaks it into directory and file name components. It enquires from the running
system the list of supported instruction set architectures; see isalist(5). The function traverses the list for an executable file in named
subdirectories of the original directory. When such a file is located, execve() is invoked with argv[] and envp[]. See exec(2).
RETURN VALUES
If no file is located, isaexec() returns ENOENT. Other return values are the same as for execve().
EXAMPLES
Example 1: Example of isaexec() function.
On a system whose isalist is
sparcv7 sparc
the program
int
main(int argc, char *argv[], char *envp[])
{
return (isaexec("/bin/thing", argv, envp));
}
will look first for an executable file named /bin/sparcv7/thing, then for an executable file named /bin/sparc/thing. It will invoke
execve() on the first executable file it finds named thing.
On that same system, a program called /u/bin/tofu can cause either /u/bin/sparcv7/tofu or /u/bin/sparc/tofu to be invoked using the follow-
ing code:
int
main(int argc, char *argv[], char *envp[])
{
return (isaexec(getexecname(), argv, envp));
}
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
|Interface Stability |Stable |
+-----------------------------+-----------------------------+
SEE ALSO exec(2), getexecname(3C), attributes(5), isalist(5)SunOS 5.10 20 Mar 1998 isaexec(3C)