Search Results

Search: Posts Made By: dae
1,201
Posted By dae
Many thanks to each of you, Rudi & Scrutinizer...
Many thanks to each of you, Rudi & Scrutinizer ... your proposals helped me a lot,
1,201
Posted By dae
Using pipe command between process and concatenate
Dear all,

I use a pipe command to assign a variable:

[x004191a@xsnl11p317a tmp]$ v_LstStdCdhId=$(cat Bteq_Xport_GetLstStdViewToBuild__1274.txt | grep 'CD/39/AT/CDH_BV_ODS'|cut -d"/" -f1)...
1,184
Posted By dae
Many Thanks to all of you for your help, ...
Many Thanks to all of you for your help,

Regards,

Didier.
1,184
Posted By dae
Deleting [CR][LF] using sed
Dear all,

I face a problem I can not solve: I have different lines in a file and some of them are ending with [CR][LF] ie "\r\n" and the others are ending with [LF] "\n".

My aim is to supress...
1,665
Posted By dae
Many thanks to all of you for your answers ... ...
Many thanks to all of you for your answers ...

Few comments I would like to add:

1. Peasant, I do not think a subshell is created when using that syntax: in fact, I show the PID for both...
1,665
Posted By dae
Shell Variable visibility
Dear All,

Saying, I have two distinct functions with the same goal (counting lines containing a specific pattern in a file MyFile).

To perform that operation, I used a "while loop" with two...
894
Posted By dae
Thanks a lot for your reply RudiC, for...
Thanks a lot for your reply RudiC,

for instance, below is the whole content of the log file MyLogFile:

UPDATE
TGT
FROM
CDH_REJT_DEV1.RAVE_LNKITEMGROUPITEM TGT
,...
894
Posted By dae
Parsing a log file to cut off some parts
Dear all,

I would like to use SQL's log file to extract information from it.

This file can include four different types of instruction with the number of lines involved for each of them:

->...
1,968
Posted By dae
Thanks a lot RudiC, :) ... that was not too...
Thanks a lot RudiC, :) ... that was not too confusing but very clear ! :)
1,968
Posted By dae
RudiC, thanks a lot for that third solution...
RudiC,

thanks a lot for that third solution ... I assume that one is better than the previous ones because it is not necessary to use a loop, right ?

I allow myself to ask you a last question...
1,968
Posted By dae
Thanks to all of you ... Scrutinizer and RudiC,...
Thanks to all of you ... Scrutinizer and RudiC, your suggestions are solving my problem ! :)
RudiC, I think your suggestion is quite similar to the Scrutinizer's proposal, right ? ... Maybe, is...
1,968
Posted By dae
Thanks a lot Scrutinizer but I am afraid I did...
Thanks a lot Scrutinizer but I am afraid I did not explain clearly my problem: my aim is not only to initialize a variable with the content of a file but to substitute the "shell variables" by their...
1,968
Posted By dae
Replacement of variable by their content in a file
Dear all,

I have a "SQL request" in a file: that request include different "host variable" and I would like to substitute the different "host variable" by their respective content before executing...
2,128
Posted By dae
Thanks for all your contributions, I spent a...
Thanks for all your contributions,

I spent a while this morning to understand the way it is running and realize my previous question was stupid !

Thanks again for your help and the time you...
2,128
Posted By dae
Dear all, I allow myself to come back to...
Dear all,

I allow myself to come back to that thread because one point is quite difficult to understand to me ...

Just a quick reminder of the context: the aim was to instantiate a "pattern...
2,128
Posted By dae
Rudi & Ravinder, thanks a lot ! ... just let me...
Rudi & Ravinder, thanks a lot ! ... just let me check and understand ... the last point is much more difficult to me ! :)

---------- Post updated at 04:55 PM ---------- Previous update was at...
2,128
Posted By dae
Not so many ideas Rudy ... I would be able to do...
Not so many ideas Rudy ... I would be able to do it with the list of variables in a file but I feel not so comfortable with the list of variables in a variable ... as I try to do !
2,128
Posted By dae
To substitute multiple variable by their content in a file
Dear All,

I would like to instantiate a "pattern file" substituting "variable name" by their content.

Saying, we have:

1/ a "pattern file" containing different "variable name", the first...
16,773
Posted By dae
Dear all, My aim: I want to add "spaces" in...
Dear all,

My aim: I want to add "spaces" in front of each line of a "variable content", V, using awk !

Example:

Content of "V":

[x004191a@xsnl11p317a tmp]$ echo "$v"
HOST_CDH_ID...
16,773
Posted By dae
What a "big jump" in my knowledge thanks to all...
What a "big jump" in my knowledge thanks to all your contributions ... Don, I got the same error for myself but I decided to do not bother all of you more with my problem !

Thanks again for your...
16,773
Posted By dae
Rdrtx1's proposal is exactly what I was looking...
Rdrtx1's proposal is exactly what I was looking for ... but I am absolutely unable to understand it ! :(

if one of you has an idea ?

Thanks again,
16,773
Posted By dae
Thanks to all of you, Balajesuri, Scrutinizer &...
Thanks to all of you, Balajesuri, Scrutinizer & Stomp !
16,773
Posted By dae
[sed]: syntax to insert N spaces in front of a string
Dear all,

I would like to insert N blankspaces in front of a string using sed command

To give an example (N=10), I tried that code:

[x004191a@xsnl11p317a tmp]$ echo "abcd" | sed 's/^/...
2,940
Posted By dae
Thanks a lot for your detailed explanation,...
Thanks a lot for your detailed explanation, Scrutinizer: I would never be able to find that by myself !
1,812
Posted By dae
rdrtx1 & RudiC, thanks a lot for your answers ! ...
rdrtx1 & RudiC, thanks a lot for your answers !

RudiC, you mentioned in your answer awk would be useful to carry out that kind of operation.

If you have few minutes, would you like to share the...
Showing results 1 to 25 of 28

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