Could you show a little more context for that code? And while you're at it, add linebreaks and keep it inside [ code ] [ /code ] tags like this:
please.
This is much easier to read than
int main(int argc, char *argv[]) { printf("Hello World!\n"); return(0); }
I am working on a script that prompts a user name and creates a list in a username.dat file. Furthermore, I have created a sorted_username.dat file. My question is this: My script uses the word "finished" != finished to break the while loop. How can I avoid having the word "finished" show up in... (5 Replies)
Hi All,
I want to remove last word from a line using Vi.
Do we have any vi command for that.
line : ss dd ff gg
i have to run some vi command which can delete gg from the line
Thanks,
Ravi Sadani (4 Replies)
Hi All,
In one of the sections in my perl script, I need to remove the 1st character of a word and store in an array.The details are ,
The original script was ,
if ( ! defined $inq{$node}{"dmx"} ) {
print "INFO: Collecting inq disk information for DMX array on $node.\n";
... (2 Replies)
hi
I would like to ask if someone knows a command or a script on how to rename a multiple file in the directory starting at the end of the filename or at the .extension( i would like to remove the last 11 character before the extension) for example
Below is the result of my command ls inside... (5 Replies)
Hello! This is my first post here.
I have a file with text like:
A</title>
B
C</title>
D
I need to format it to:
AB
CD
I am trying to use sed: sed 's/<//title>\n/ /g' file > newfile
to delete </title> and the newline character, but the file is unchanged because there are... (3 Replies)
lets say i have a file named ex1 which contain an essay.
(a) delete the word "benefit" from the file
(b) delete the last 6 characters on each line
for the first problem i entered :g/benefit/d but it deletes the whole line
please help (3 Replies)
It is very simple to remove a hyphen from a word anywhere in that word using a simple sed command (sed -i 's/-//g' filename), but I am not able to figure out how to do this:
For example,
apple
-orange
tree
pipe-
banana-shake
dupe-
What my output should look like:
apple
orange
tree... (1 Reply)
My file has the entries like below...
/dev/sds
/dev/sdak
/dev/sdbc
/dev/sdbu
I want to make the file like below
echo 1 > /sys/block/sds/device/rescan
echo 1 > /sys/block/sdak/device/rescan
echo 1 > /sys/block/sdbc/device/rescan
echo 1 > /sys/block/sdbu/device/rescan (2 Replies)
Discussion started by: saravanapandi
2 Replies
LEARN ABOUT PHP
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)