Search Results

Search: Posts Made By: kmsekhar
1,697
Posted By kmsekhar
Thanks a lot......
Thanks a lot......
1,697
Posted By kmsekhar
Replace Second row with First row in a File
Hi,

I need to replace first row to second row:

Input:

A
JACK WAS_${HH}_JACK ....


Output should be:

JACK WAS_A_JACK ....


I tried below code..

awk '{TEMP= (NR==1)};...
4,724
Posted By kmsekhar
Thanks working fine.....
Thanks working fine.....
4,724
Posted By kmsekhar
Passing file content as parameter
Hi All,

I am passing a file value as parameter to awk command;
Par.txt

A|B


Input.txt

A,1
B,3
C,4
D,5


My desired output should be

A,1
B,3
2,491
Posted By kmsekhar
Thanks all its working fine
Thanks all its working fine
2,491
Posted By kmsekhar
Split records into multiple records
Hi All,

I am trying to split a record into multiple records based on a value.

Input.txt

"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:
...
1,707
Posted By kmsekhar
How to find a file modified more than once
Hi All,

How to find a file modified more than once....

Thanks in advance
3,407
Posted By kmsekhar
Thanks all
Thanks all
3,407
Posted By kmsekhar
Vertical And Horizontal Pivoting
Hi All,

My Input data is:

A=1
B=2


My desired Output should be:

A|B
1|2


Thanks in advance...
2,972
Posted By kmsekhar
Thanks its worked
Thanks its worked
2,972
Posted By kmsekhar
Unable to Print Count
Hi All,


I am performing addition of two inetger variables which assigning output to a new variable getting following error.


Check1.sh

#!/bin/ksh
filesrc=/usr/kk/Source1.txt...
2,972
Posted By kmsekhar
I am getting error ksh: seq: not found.
I am getting error

ksh: seq: not found.
2,972
Posted By kmsekhar
How to store output in a file using below code? ...
How to store output in a file using below code?


cat script.awk
BEGIN {
FS = "|"
OFS = "\n"
}

{
diff = $2 - $1
while ( diff >= 0 ) {
printf "%04i\n", $2 -...
2,972
Posted By kmsekhar
Thanks a lot for your solutions
Thanks a lot for your solutions
2,972
Posted By kmsekhar
Value Increment based on count
Hi All,

I have source file
x.txt

0001|0003
0031|0031
0045|0049


My desired output should be:
y.txt

0001
0002
0003
0031
0045
0046
0047
2,850
Posted By kmsekhar
its typing mistake only.. Script working fine......
its typing mistake only.. Script working fine... Thanks all
2,850
Posted By kmsekhar
Yes its working fine... Thanks a lot all for your...
Yes its working fine... Thanks a lot all for your help I forget to remove () while calling the functions
2,850
Posted By kmsekhar
SRCFILE_DATA_CHECK() { echo...
SRCFILE_DATA_CHECK()
{
echo 'Sourcefile_Record count is:'$COUNT_SRC
if [[ $COUNT_SRC -le 0 ]]; then
echo 'Record count is zero in Sourcefile Exiting'
exit 0
else
echo "Source file is not...
2,850
Posted By kmsekhar
Thanks fra & ahamed....I tired both options: but...
Thanks fra & ahamed....I tired both options: but still error exists :wall:


if [ "$A_CHECK" -eq "F" ]; then

ARCHIVE()

TEST_SRC()
elif [ "$A_TGT" -eq "$A_DLT_SRC" ]; then
........
2,850
Posted By kmsekhar
Even I had done this earlier but getting same...
Even I had done this earlier but getting same error...
2,850
Posted By kmsekhar
elif if not expected
Hi All,

I write an script will have some functions... I am getting elif not expected error..

Even tried by using set -x for debug but no use..

Could you please help me out in this
...
1,127
Posted By kmsekhar
Cloning
Hi,

Is there disadvantages if we do AIX Serevr cloning to the new AIX server[hardware configuration is same as old server].

Thanks in advance
Forum: AIX 12-19-2011
4,138
Posted By kmsekhar
AIX Server Cloning
Hi,

Is there disadvantages if we do AIX Serevr cloning to the new AIX server[hardware configuration is same as old server].

Thanks in advance
3,745
Posted By kmsekhar
Replace text in XML file based on Previous Line
Hi All,

I want to change the name as SEQ_13
ie., <Property Name="Name">SEQ_13</Property>
when the Stage Type is PxSequentialFile
ie., <Property Name="StageType">PxSequentialFile</Property> ...
2,013
Posted By kmsekhar
Thanks
Thanks
Showing results 1 to 25 of 43

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