Search Results

Search: Posts Made By: jeffs42885
3,953
Posted By Scott
$ grep -o "LoadId([^)]*)" file ...
$ grep -o "LoadId([^)]*)" file
LoadId(5137-1-0-1XX-15343-15343)


Or with sed

$ sed -n "/LoadId/{s/.*\(LoadId([^)]*)\).*/\1/;p;}" file
LoadId(5137-1-0-1XX-15343-15343)
2,675
Posted By vgersh99
how about: awk -v qq='"' ' FNR==NR...
how about:

awk -v qq='"' '
FNR==NR {u[$0];next}
{
printf("<folder name = %s%s%s>\n",qq,$0,qq)
for (i in u)
printf("\t<file group =%s%s%s></file>\n",qq,i,qq)
...
1,628
Posted By Corona688
You don't need a $50,000 subscription to learn...
You don't need a $50,000 subscription to learn sed/awk/grep - these standard UNIX tools are found in just about anything. I'm not sure you even need another operating system. For a gentle start...
1,931
Posted By vgersh99
awk -F'"' '{print $2}' myFile sed...
awk -F'"' '{print $2}' myFile
sed 's/[^"]*"\([^"]*\).*/\1/' myFile
1,103
Posted By Yoda
You could code something like: #!/bin/bash ...
You could code something like:
#!/bin/bash

Command.sh errors | while read line
do
if [[ "$line" =~ ^ID: ]] # Check if line starts with pattern - "ID:"
then
...
4,515
Posted By birei
Try deleting print0 and -d ''. You can get the...
Try deleting print0 and -d ''. You can get the job done without problem if your file names have not special characters like newline or similar.

Regards,
Birei.
2,135
Posted By ctsgnb
ps will only show you the current processes, it...
ps will only show you the current processes, it will NOT tell you whether the database accept new connections or not.
1,111
Posted By ctsgnb
for i in 1 2 3 4 do echo "Task execution...
for i in 1 2 3 4
do
echo "Task execution number $i"

... do whatever you want ...

done

by the way you have an error : the trailing

done
fi

is wrong, it should be
fi
done

instead
3,062
Posted By Franklin52
You can do something like: ps -ef | grep...
You can do something like:
ps -ef | grep 'process1.*(state2)'
1,938
Posted By Scrutinizer
The grep process itself needs to be excluded. If...
The grep process itself needs to be excluded. If the process is called "gnorky", you can use:
ps -ef | grep [g]norkyfor example
1,938
Posted By ctsgnb
ps -ef | grep accepting
ps -ef | grep accepting
4,364
Posted By Chubler_XL
The default signal for kill is 15 (SIGTERM) this...
The default signal for kill is 15 (SIGTERM) this sends a "request" to the process to terminate. So locked-up processes may not respond to this request in which case you may need to use -9 (SIGKILL)...
4,364
Posted By ctsgnb
I think what you need would more likely looks...
I think what you need would more likely looks like something like this :

ps -ef | grep Proc | egrep -ve 'grep|PID' | awk '{print $2}' | xargs kill

(of course this should be adjusted depending...
4,364
Posted By ctsgnb
grep -v Proc ??? grep -v grep ??? By the way,...
grep -v Proc ??? grep -v grep ???
By the way, did you try to manually enter this :
ps -ef | grep Proc | grep -v grep ... and see what result you have ?...

Do not mix the PID of the process and...
Forum: AIX 04-02-2005
52,561
Posted By Perderabo
AIX Links
Manufacturer Links

General Information

Home Page: IBM United States (http://www.ibm.com)
Documentation/Information: IBM System p - UNIX servers: Support and services...
Showing results 1 to 15 of 15

 
All times are GMT -4. The time now is 05:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy