Search Results

Search: Posts Made By: r_t_1601
2,399
Posted By r_t_1601
Apologies for the changes made . Don you have...
Apologies for the changes made . Don you have posted almost everything correctly
Note that post #6 in this thread says that the NO should be replaced by one of the literal strings STR1 or STR2...
2,399
Posted By r_t_1601
Hi Ravinder thanks for the response. ...
Hi Ravinder thanks for the response.


STR1="/scripts/waitForDummyFilePDS.sh -f$Paramdummyfile -H$ParamIP -e$Paramemail -j$Paramprefilename"
STR2="scripts/waitForDummyFilePDS.sh -f$Paramdummyfile...
2,399
Posted By r_t_1601
Thanks Rudi however im unable to using variable...
Thanks Rudi however im unable to using variable replacement inside gsub

awk -F "[><]" '/VALUEPAIR EXECORDER/{gsub(/VALUE =\"*\"/,VALUE = $STR1)}1' wf_DB2zOS_DB2PAAA_TCHK_ACCT_MASTER.xml
...
2,399
Posted By r_t_1601
XML parsing
I have an xml file where the format looks like below



<SESSIONCOMPONENT REFOBJECTNAME ="pre_session_command" REUSABLE ="NO" TYPE ="Pre-session command">
<TASK DESCRIPTION =""...
714
Posted By r_t_1601
Search and replace
I have a file wit records
# entry-id: 1
dn: uid=dnadminuser,ou=perm,dc=mssb,dc=com
pwdchangedtime: 20110612053517Z
modifytimestamp: 20110612053517Z
modifiersname:...
1,114
Posted By r_t_1601
Thanks RudiC. I wanted to sort the file as...
Thanks RudiC.

I wanted to sort the file as well based on # entry id 1 value. Using sort command but unable to do so.
1,114
Posted By r_t_1601
Splitting a file
I have a source file where a record starts with # entry-id: followed by a number.
i want to move the record in file 1 iff the second row is
"dn: uid=.*,ou=perm,dc=mssb,dc=com"
and the record to ...
1,639
Posted By r_t_1601
Thanks A lot Rudy ! can you please explain this...
Thanks A lot Rudy ! can you please explain this bit as what it does

$1 == "$Param5" {if (REP) $2 = REP
REP = ""
1,639
Posted By r_t_1601
Yet trying on how to substitute the values ...
Yet trying on how to substitute the values

grep -A 5 "\:s_abc" file2 | awk 'FNR==6 || FNR==5 {print}'
1,639
Posted By r_t_1601
Operating system Linux iapp218.devin1.ms.com...
Operating system
Linux iapp218.devin1.ms.com 2.6.18-402.el5 #1 SMP Thu Jan 8 06:22:34 EST 2015 x86_64 x86_64 x86_64 GNU/Linux

and the shell im using is
/bin/ksh
1,639
Posted By r_t_1601
Search & Replace
Hi Gurus,

I have two files. I want to read sessoin_name from the file1 and replace $Param4 & $Param5 in file2 with connection_name in specified in file1.
The file1 will have data in following...
Forum: Infrastructure Monitoring 02-09-2015
4,439
Posted By r_t_1601
Also captured the yeild for cat /proc/interrupts ...
Also captured the yeild for cat /proc/interrupts


CPU0, CPU1, CPU2, CPU3, CPU4, CPU5, CPU6, CPU7, CPU8, CPU9, CPU10, CPU11, CPU12, CPU13, ...
Forum: Infrastructure Monitoring 02-09-2015
4,439
Posted By r_t_1601
PFA the mpstat output
PFA the mpstat output
Forum: Infrastructure Monitoring 02-09-2015
4,439
Posted By r_t_1601
CPU - Interrupts distribution
Hi Gurus,

I have a situation runing my ETL tools on the below server. The throughput while processing data is coming very low. When i tried to analyse the CPU stats i got colleceted the mpstat.
...
2,584
Posted By r_t_1601
Hi Don, I appreciate your advice and will...
Hi Don,

I appreciate your advice and will use the code tags diligently.
I'm working on GNU/ Linux and using bash shell.
This is what i have tried so far

ps -eaf | grep pmdtm | awk...
2,584
Posted By r_t_1601
Calculating the running time
Hi All,

I want to run a utility for all the process id that are running for more than 15 mins.
I have captured process id's and the time that they were run in a file like below
1st column...
1,616
Posted By r_t_1601
I'm trying to understand how awk work with arrays...
I'm trying to understand how awk work with arrays and keen to learn.. can anyone explain how this solution works also reference material will be helpful

sort -k1,1 testt1 | awk -F,...
2,149
Posted By r_t_1601
just tweaking the above a bit cut -d","...
just tweaking the above a bit

cut -d"," -f7,8 < file4 | tr ',' ' ' | while read A B; do `echo seq $A $B`; done
1,206
Posted By r_t_1601
Cutting pattern from source file
hi gurus,

I want to cut a selected pattern from the source file

For example

<operation >
Update
Update
Update
<operation>

I want to select the three lines having update...
6,524
Posted By r_t_1601
Empty file check
Hi gurus ,


I have two files and i want to perform different action based on the condition if both or either is empty

If [ File 1 is not empty && File two is not empty ]
then
...
1,214
Posted By r_t_1601
Delete Selected lines
Thanks Don this works.

Actually i have control Characters in 4th and 5th Column. hence it's not working on those . how can i delete if the column is either null or has control characters
1,214
Posted By r_t_1601
Sorry for confusion. I want to delete all...
Sorry for confusion.

I want to delete all the lines that are selected by the two awk statements i have written. for example Source file
CREATE L2 SUPP PLAN,2,3,4,5,6,7
CREATE L2 SUPP...
1,214
Posted By r_t_1601
Delete selected lines
hi Gurus,

I have a source file with more than 10 columns ( not fixed )
I want to delete all the lines on the following condition

1) where i have first column as "UPDATE PLAN ADD RATE...
867
Posted By r_t_1601
Splitting File
Hi gurus,

we have a input file where the first line has tags and subsequent lines have corresponding data.
I want to remove the tag and data for the below two operation from the input file and...
8,527
Posted By r_t_1601
Replace characters in string with awk gsub
Hi I have a source file that looks like
a,b,c,d,e,f,g,h,t,DISTI(USD),MSRP(USD),DIST(EUR),MSRP(EUR),EMEA-DISTI(USD),EMEA-MSRP(USD),GLOBAl-DISTI(USD),GLOBAL-MSRP(USD),DISTI(GBP), MSRP(GBP)

I want...
Showing results 1 to 25 of 69

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