the command/ set of commands to capture that string?
In case you have an AIX box,run following command
You'll see five-column o/p ,of which 5th column will have strings ,separated by whitespaces.
Select one row where 5th column would be a such a huge string.Now assume you are iterating over its PID(1st column value) meaning you know this value and need to iterate over this to get that 5th column and whatever is there in that column ,assign it to a variable.
...
In case you have an AIX box,run following command
You'll see five-column o/p ,of which 5th column will have strings ,separated by whitespaces.
Why don't you paste the output of that command over here ?
Not everyone over here has an AIX box (an example being myself).
Quote:
Select one row where 5th column would be a such a huge string.Now assume you are iterating over its PID(1st column value) meaning you know this value ...
Which value ? 5th column or 1st column ?
Quote:
... and need to iterate over this to get that 5th column ...
Does "this" mean the "1st column" ?
Why would one need to iterate over the "1st column" ?
Quote:
... and whatever is there in that column ,assign it to a variable.
i thought ppl here are smart enough to understand things....!! sheer disappointment !!
one last attempt to explain what i need:
here it is
now we see PID column,we have that value.Take that value and write something that it would look for the 5th column (command)...and irrespective of how long this string (command) is ,assign it to a variable.
e.g PID=242070,ARGS string is needed in a variable so that i can spilt it into three parts.(Command Name,Command Path,Command Arguments)
Regards
Abhi
---------- Post updated at 06:03 PM ---------- Previous update was at 04:00 PM ----------
If i punch "242070" in place of @@Host Processes.PID@@,then what i get is
I need that whole string.
Does this help?
Regards
Abhi
---------- Post updated at 06:06 PM ---------- Previous update was at 06:03 PM ----------
Hi all,
I have a log file say Test.log that gets updated continuously and it has data in pipe separated format. A sample log file would look like:
<date1>|<data1>|<url1>|<result1>
<date2>|<data2>|<url2>|<result2>
<date3>|<data3>|<url3>|<result3>
<date4>|<data4>|<url4>|<result4>
What I... (3 Replies)
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Hi All,
I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
So, I want to read line-by-line a text file with unknown number of files....
So:
a=1
b=1
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
done
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
I have few AIX 5.3 boxes where following is the issue.
I have a variable whose value is a very huge string ...(5000+ characters)
CMD_ARGS="/global/site/vendor/WAS/WebSphere6/AppServer/java/bin/java... (7 Replies)
Hi friends...
I am sending a file say xyz.xls to a mail through unix.
The .xls file is more than 65 thousand in size so I want to spilt the file size into 40 thousand and 25 thousand.
So can anyone provide any inputs.... (1 Reply)