Search Results

Search: Posts Made By: ratheeshjulk
2,186
Posted By ratheeshjulk
Passing parameters and accepting in Array
I am trying to pass parameters to a script which will accept them in array.

First parameter is where_clause
second parameter is "SRC_TYPE='SYBASE' and PROCESS_CD='BRK'"



[$ cat abcd.ksh...
2,040
Posted By ratheeshjulk
Thanks.. solution worked..
Thanks.. solution worked..
2,040
Posted By ratheeshjulk
Remove duplicate values in a column(not in the file)
Hi Gurus,

I have a file(weblog) as below


abc|xyz|123|agentcode=sample code abcdeeess,agentcode=sample code abcdeeess,agentcode=sample code abcdeeess|agentadd=abcd stereet...
6,123
Posted By ratheeshjulk
Can i Give a separator between the fields in ps...
Can i Give a separator between the fields in ps command itself
ps -eo user,pid,ppid,pcpu,pmem,vsz,rss,start,stat,cmd|grep DW_DCM|head
rjanardh 3866 7777 0.0 0.0 6068 604 16:47:17 S+ grep...
6,123
Posted By ratheeshjulk
Thanks a ton Thats what i was looking for.. ...
Thanks a ton
Thats what i was looking for..
Just needed a small modification to display the entire command
ps -eo cmd:200,user,pid,ppid,pcpu,pmem,vsz,rss,start,stat
6,123
Posted By ratheeshjulk
uname -a Linux XXXXXXXXX 2.6.18-308.4.1.el5 #1...
uname -a
Linux XXXXXXXXX 2.6.18-308.4.1.el5 #1 SMP Wed Mar 28 01:54:56 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
6,123
Posted By ratheeshjulk
[Solved] Customizing ps command
Hi,
I want to monitor our batch jobs at a specific interval for later analysis to see the performance and CPU utilization

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND...
Forum: Linux 03-14-2014
3,290
Posted By ratheeshjulk
The problem was , when our batch was running on...
The problem was , when our batch was running on its peak, as i told all the resources cpu, memory and swap space were reaching 100%, and finally system become unresponsive.
later we increased the...
Forum: Linux 03-11-2014
3,290
Posted By ratheeshjulk
During the peak of our batch we will have lot of...
During the peak of our batch we will have lot of processes trying to access the resources. during this time Swap space reach 100% and even after all the process completed the swap space will not come...
Forum: Linux 03-10-2014
3,290
Posted By ratheeshjulk
Swap memory issue
Hi,

In our production box i can see the Swap space using the below command
free
total used free shared buffers cached
Mem: 65963232 41041084 ...
1,694
Posted By ratheeshjulk
Hi Corona688 you code worked but it looks like it...
Hi Corona688 you code worked but it looks like it was repalcing only in the second module of the tag.
Code provided by Yoda replaces the lines and the following lines which can be tuned to get my...
1,694
Posted By ratheeshjulk
Thanks for the quick help. I hope this code is...
Thanks for the quick help. I hope this code is replacing the second para within the tab "SubRecord" with the replacement string, which will not serve my need.
Is there a way we can delete all the...
1,694
Posted By ratheeshjulk
Data will always be same in this particular tag...
Data will always be same in this particular tag which I want to replace, Even if repeats let it be replaced
<SubRecord> <Property Name="Name">$ABCD</Property> <Property...
1,694
Posted By ratheeshjulk
XML data replacement
I have below lines in a file

<SubRecord>
<Property Name="Name">QQQQQQQQ</Property>
<Property Name="Prompt">YYYYYYYYYY</Property>
<Property Name="Default">$ddd</Property>
...
1,521
Posted By ratheeshjulk
What do you mean by only k m as output.. Do you...
What do you mean by only k m as output.. Do you want the only the first field if before "==" then
echo "whateveroutput" +awk |F[=][=] '{print $1}'
1,886
Posted By ratheeshjulk
If you are not replacing - with space then the...
If you are not replacing - with space then the below will work.
x=$(echo $1|cut -d'-' -f1)
y=$(echo $1|cut -d'-' -f2)
z=$(echo $1|cut -d'-' -f3)
5,401
Posted By ratheeshjulk
How can i avoid treating it as octal. Because i...
How can i avoid treating it as octal. Because i am storing the value to the varaiable from output of someother command like below

var=`grep "trailor" sample|cut -c20-25`
typeset -i abc=$var
5,401
Posted By ratheeshjulk
Typeset command issue
Hi,
As per my understanding typeset wil lmake a variable constant or readonly and -i option will make a variable integer. But please see the below outputs

typeset -i abc=000001;echo $abc
1...
1,369
Posted By ratheeshjulk
Strip First few Characters
I want to strip first few characters from each record until a proper datesamp is found.


Request for getNextPage.................06/29/12 07:49:30...
4,773
Posted By ratheeshjulk
Thanks Raj.. But even in the above code there is...
Thanks Raj.. But even in the above code there is a chance of error. Because we can expect any characters as unwanted stream of texts in front. I need to start the line with datestamp
Want to know...
4,773
Posted By ratheeshjulk
Thanks. It worked, But if a slash '/' (delim)...
Thanks. It worked, But if a slash '/' (delim) comes in front of the date stamp then the output will be errored?

99918/797.45204/13/12 06:55:40...
4,773
Posted By ratheeshjulk
remove first few characters from each line
Hi,

I have a file with lines like below.
I need to remove first few characters from each line until a date format is found.


05/06/12 20:47:02...
1,562
Posted By ratheeshjulk
awk -F'_' {'print $2'} sourcefile|cut -c-3| tr...
awk -F'_' {'print $2'} sourcefile|cut -c-3| tr '[:lower:]' '[:upper:]'
4,051
Posted By ratheeshjulk
Please post some sample from the content of file...
Please post some sample from the content of file and the desired output
3,566
Posted By ratheeshjulk
Thanks Yazu... It Worked... ---------- Post...
Thanks Yazu... It Worked...

---------- Post updated at 03:22 AM ---------- Previous update was at 03:20 AM ----------

@guruprasadpr
It worked till some line. and then thrown an error...
Showing results 1 to 25 of 47

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