10-11-2012
@elixir_sinari,,Thanks GOOD explanation..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
is there a way to delete last n characters from a word
like say i have employee_new
i want to delete _new. and just get only employee
I want this in AIX Shell scripting
Thanks (3 Replies)
Discussion started by: rajaryan4545
3 Replies
2. UNIX for Dummies Questions & Answers
Hi All
i need to delete a recurring word from point "n" till end of the file. there are other words in this file so i cannot use `dG`, can anyone help me out?
Kind regards
Brian (4 Replies)
Discussion started by: brian112
4 Replies
3. Shell Programming and Scripting
i jst want to delete a host entry from httpd.conf
for eg:
i have entries such as:
<VirtualHost 192.168.1.157:80>
DocumentRoot /home/karthik
ServerName kar
</VirtualHost>
<VirtualHost 192.168.1.157:80>
DocumentRoot /home/karthik1
ServerName www
</VirtualHost>
<VirtualHost... (4 Replies)
Discussion started by: jacky29
4 Replies
4. Shell Programming and Scripting
Hi there,
I'd like to delete the beginning of a line up until it finds a certain word or character string: in this case, I'd like to delete each line up to the word "mounting".
Thanks ;)
Susan (12 Replies)
Discussion started by: kitykity
12 Replies
5. Shell Programming and Scripting
Hi all,
FileOne
family balance >>>>>
0 0
0 0
java.io.FileNotFoundException: Settings.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
..
....
.....
.....
java.lang.NullPointerException
...
.....
......
Stacktrace:
at... (2 Replies)
Discussion started by: linuxadmin
2 Replies
6. Shell Programming and Scripting
Hi All,
I have a file in which a number of lines are starting with similar first word but different next words.
I want to replace the any nth word(not 1st or 2nd) with another word.
Eg:- My file contains are like this:-
Ram is a boy.
Ram is a good boy.
Ram plays cricket.
Here I want to... (2 Replies)
Discussion started by: mukeshbaranwal
2 Replies
7. Shell Programming and Scripting
i have something like this...
echo "teCertificateId" | awk -F'Id' '{ print $1 }' | awk -F'te' '{ print $2 }'
Certifica
the awk should remove 'te' only if it is present at the start of the string.. anywhere else it should ignore it.
expected output is
Certificate (7 Replies)
Discussion started by: vivek d r
7 Replies
8. Shell Programming and Scripting
Hi,
I have multiple files of same format and I want to delete the lines starting with # and The from all of them
I am using
egrep -v '^(#|$)'
for # but unable to do for both # and The
Please guide
Thanks (12 Replies)
Discussion started by: bioinfo
12 Replies
9. Shell Programming and Scripting
I have a big file having 100 K lines.
I have to read each line and see at 356 character position whethere there is a word "W" in it. If it is their then don't delete the line otherwise delete it.
There are two lines as one Header and one trailer which should remain same.
Can somebody... (5 Replies)
Discussion started by: mohit kanoongo
5 Replies
10. Shell Programming and Scripting
sed /'1-2'/&^/ filename
suppose there is a file containing three lines , how do we do delete the word from each line?
hyter efr frf
rerfer efe ewd
cdcf evrfgf erfv
the output has to look like
frf
ewd
erfv (2 Replies)
Discussion started by: Rajeev Nukala
2 Replies
LEARN ABOUT DEBIAN
explain_setsid_or_die
explain_setsid_or_die(3) Library Functions Manual explain_setsid_or_die(3)
NAME
explain_setsid_or_die - sets process group ID and report errors
SYNOPSIS
#include <libexplain/setsid.h>
pid_t explain_setsid_or_die(void);
pid_t explain_setsid_on_error(void);
DESCRIPTION
The explain_setsid_or_die function is used to call the setsid(2) system call. On failure an explanation will be printed to stderr, obtained
from the explain_setsid(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
The explain_setsid_on_error function is used to call the setsid(2) system call. On failure an explanation will be printed to stderr,
obtained from the explain_setsid(3) function, but still returns to the caller.
RETURN VALUE
The explain_setsid_or_die function only returns on success, see setsid(2) for more information. On failure, prints an explanation and
exits, it does not return.
The explain_setsid_on_error function always returns the value return by the wrapped setsid(2) system call.
EXAMPLE
The explain_setsid_or_die function is intended to be used in a fashion similar to the following example:
explain_setsid_or_die();
SEE ALSO
setsid(2)
creates a session and sets the process group ID
explain_setsid(3)
explain setsid(2) errors
exit(2) terminate the calling process
COPYRIGHT
libexplain version 0.52
Copyright (C) 2011 Peter Miller
explain_setsid_or_die(3)