Hi ,
I have a list of application process id's.
Is there a way to kill all the process listed below using the script, except the once which are starting with " Genesis "
Code:
adm 1522 ABC_Process.tra
adm 1939 Genesis_Process.tra
adm 2729 Genesis_Archive.tra
adm 3259 xyz_Process.tra
I have two set of questions.
1) To skip killing some process automatically.
2) To kill other process and capture their log.
I have set of process, some needs to be killed gracefully and others should be skipped.
The following "NAME" is the keyword to use to kill all processes containing it. While the command is very useful, it is user-unfriendly to type it in terminal. I've tried alias and make it a shell script but as NAME is inside awk so the problem becomes complicated. Could anybody advise?
Code:
ps -ef | awk '/NAME/{print $2}' | xargs kill
Hi,
I'm trying to write a script where i'm trying to grep the PID and the associated file and list them.
Hi Experts,
I am trying to split a record into multiple records based on a value.
Input.txt
Code:
"A",1,0,10
"B",2,0,10,15,20
"C",3,11,14,16,19,21,23
"D",1,0,5
My desired output is:
Code:
"A",1,0,10
"B",2,0,10
"B",2,15,20
"C",3,11,14
"C",3,16,19
"C",3,21,23
"D",1,0,5
I trie
Hi,
I have a shell script that creates 2 parallel processes.
Hey everyone, I have a very simple BASH shell script that simply checks what processes I have running on a few different nodes, which are preknown. Currently, my script spews out all the processes on all the nodes, but I'm really only interested in one process per node. The processes I am interested are the only .exe processes on the nodes.
The following code will split the infile into multiple files. However, I need it to insert the same first 3 lines from the original input file into each splitted file. How do I modify my script below to do so:
Code:
print -n "Enter file name to split?
Hi,
I would like to know how to extract and get the value of the last element in an array after split.
Let's say i have an input of
Code:
aaa mykeyword_111 abc/def/ghi/mno
bbb none ttt.aaa.ccc
ccc mykeyword_222 ppp/qqq/rrr/ss
I expect the output to be like this way.
Code:
aaa 111 mno
ccc 222 ss
I am trying to write in such a way below.
Code:
awk '$2 ~/mykeyword/ {
{spl