Search Results

Search: Posts Made By: indrajit_u
1,998
Posted By indrajit_u
Hi Ygor, Thanks for the code. This...
Hi Ygor,

Thanks for the code.

This code worked for me perfectly for the scenario I gave. I may have scenario where in I would not have Test in common like

Test1.PO_Itm COLUMN ACTVIND. ...
1,998
Posted By indrajit_u
Condition based concatenation.
Hello,

I am looking for concatenating the lines based on conditions. Below are the contents of the file:

Infile:
-----
Test1.PO_Itm COLUMN GAC_DT.
Test1.PO_Itm COLUMN (PRODTCD ,PLNTCD). ...
16,584
Posted By indrajit_u
Hello.. Thanks for the quicky.. Will "if [...
Hello..

Thanks for the quicky..
Will "if [ $# -lt 3 ]" check for case when any 3 arguments are passed or the first 3.
16,584
Posted By indrajit_u
Optional Parameters/arguments while executing a script.
Hello,

I have a shell script "Test.ksh" and I need to pass 8 parameters/arguments while executing the script

./Test.ksh 1 2 3 4 5 6 7 8

Out of these I want first 3 to be compulsory and...
3,494
Posted By indrajit_u
Thanks All..!!!
Thanks All..!!!
3,494
Posted By indrajit_u
Search a String and display only word.
Hello Gurus,

Apologies if this Q has been repeated but i was not able to find it :(

I have an input file:
-------------------------------
Replace DB.Employee
as
select
column1...
2,824
Posted By indrajit_u
Oops sorry my bad for reversing the solutions...
Oops sorry my bad for reversing the solutions :confused:

The field CalDayRunDt may not be always the case so I just want to look for dates and replace them with the variable. But the dates will...
2,824
Posted By indrajit_u
REOPEN - Replace a word After a string (Scottn and Bartus11)
Hello,

The solution was working fine until i had following in my input file:

Soln By Scottn:
awk -vx=2010-06-28 '{sub("....-..-..",x,$0)}1' vwdef_MoSumSnpsht1_tmp

the $0 got replaced...
2,824
Posted By indrajit_u
Thank You Scottn and Bartus11 - both solutions...
Thank You Scottn and Bartus11 - both solutions work perfect...!!!
2,824
Posted By indrajit_u
Replace a word After a string.
Hello Gurus,

I have a file which has foll contents scattered:

,TotUnasgndNetAmt
FROM DEV_EIS_T.Wkly_SO_CCD_MOSumSnpsht
WHERE
CalDayRunDt = '2010-07-21'
UNION ALL
SELECT
CalDayRunDt...
5,843
Posted By indrajit_u
Hi.. Thanks a lot...!!! Its rocking...
Hi..

Thanks a lot...!!! Its rocking ...appreciate your time for this ..!!!
5,843
Posted By indrajit_u
Sorry but I was assuming that text string wont...
Sorry but I was assuming that text string wont make difference like

DEV_EIS_T.ProdtAtSlsOrg COLUMN SLSORGNBR.

DB_Name.ProdtAtSlsOrg COLUMN SLSORGNBR.

would require same logic and if we...
5,843
Posted By indrajit_u
I am using the same way you have given: awk...
I am using the same way you have given:

awk '/DB_Name/{printf "\n"$0;next}{printf $0}' Q1_Expln_file_diag

Output is

DEV_EIS_T.ProdtAtSlsOrg COLUMN SLSORGNBR.DEV_EIS_T.ProdtAtSlsOrg COLUMN...
5,843
Posted By indrajit_u
Thanks for the quicky but the output looks...
Thanks for the quicky but the output looks complex:

DB_Name ABC (X,Y,Z).DB_Name
DEF (T).DB_Name GHI (U,V,W).

whereas i wanted to have
DB_Name ABC (X,Y,Z).
DB_Name DEF (T).
DB_Name GHI...
5,843
Posted By indrajit_u
Concatenate multiple lines based.
Hello,

I have been searching the forum for concatenation based on condition. I have been close enough but not got th exact one.

infile:
-----DB_Name ABC (X,
Y,Z).
DB_Name DEF (T)....
Showing results 1 to 15 of 15

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