Search Results

Search: Posts Made By: krsnadasa
9,655
Posted By krsnadasa
Thanks Rudi.. this is what i was looking for. To...
Thanks Rudi.. this is what i was looking for. To understand your code I have gone through Sed documentation and it clears many of my doubts that how sed processes data line by line and only Pattern...
9,655
Posted By krsnadasa
thanks much Solved AWK/Sed Join
thanks much
Solved AWK/Sed Join
9,655
Posted By krsnadasa
Thanks both Scrutinizer could you please...
Thanks both

Scrutinizer could you please help me to understand few things ..
1. What this code is doing !NF{if(f)print s; s=x; f=0}. I understand here we are processing blank lines and if f is...
9,655
Posted By krsnadasa
Sed/awk join lines once pattern found
Hi all

OS - RHEL6.4

I have input file -f1.txt

[=129Dytt.....===..

Sometxt
\Start\now\fine step
watch this space for tools
ends here

=--2323UT;;;====.......

...
3,041
Posted By krsnadasa
Thanks Vbe Evenif I give relative path means...
Thanks Vbe

Evenif I give relative path means I run the mailx dir where zip file is present still I get full dir path in zip file name in outlook attachment. What do you mean by htta. This was...
3,041
Posted By krsnadasa
Mailx attachment using uuencode issue on Outlook2013
Hello all

I am on RHEL 6.4. I have been using my bash script which mails one .csv file after zipping (myfile.csv.zip)to my Lotus Notes ID. I use uuencode with mailx to do this. Here is my command...
Forum: Proxy Server 03-04-2016
6,909
Posted By krsnadasa
Ftp using proxy RHEL 6.2
Hello all

I am connecting vendors ftp site to get the data using our proxy server.
1. First I connect to my company's Proxy Server using ftp.

ftp myorg.proxy.server

After this command I am...
1,621
Posted By krsnadasa
Thanks Ravinder... Very clear...
Thanks Ravinder...

Very clear...
1,621
Posted By krsnadasa
Hi Anbu Can you explain this bit how it...
Hi Anbu

Can you explain this bit how it works exactly ? I have idea but not sure ..I think here we have not given actio part which comes under { action }
Hence default action is print here ...
29,482
Posted By krsnadasa
Thanks RudiC and Aia I just went through...
Thanks RudiC and Aia

I just went through documentation of Bash Paramter expansion. Post that these things became quite clear to me. Thank you for your time..
29,482
Posted By krsnadasa
Hi Aia I would like to know the bit...
Hi Aia

I would like to know the bit explanation of the piece of below command ...

find /home/arpu/test -type f -name '*.txt' | while read f; do mv -v "$f" "${f%.*}.bak"; done

Please explain...
2,105
Posted By krsnadasa
Thank you ....
Thank you ....
2,105
Posted By krsnadasa
Find pattern in first field of file
Many thanks to all

I tried Aia AWK version and it worked for me. However, if RudiC can explain his sed version that would be very helpful.

Thanks
2,105
Posted By krsnadasa
Find pattern in first field of file
Hello all

I have two files.

1. Pattern.txt - It contains patterns to be matched. It has large number of patterns to be matched.

Cat Pattern.txt

Ram
Shyam
Mohan
Jhon


I have...
2,870
Posted By krsnadasa
Hi RudiC This works great the way you...
Hi RudiC

This works great the way you defined. But when I do little different as you have advised me in earlier post it does not work -
What I did is kept all search patterns in another file -
...
980
Posted By krsnadasa
Thanks RudiC It resolves. Thanks.
Thanks RudiC

It resolves. Thanks.
980
Posted By krsnadasa
Need help for sed replace and print
Hi

I am working with sed to get string replace and print all the lines.


Cat f1
<text1>
tag123 44412c232place1
text456-text=
tag12 44412c232place4
jjaa
TAG456 44412c232place1066dfdf...
2,870
Posted By krsnadasa
Hi Ravinder Thanks for reply. However I do...
Hi Ravinder

Thanks for reply. However I do not want to delete the leading spaces which means I do not want records to be shifting to left end either. Still I should be able to match the record.
...
2,870
Posted By krsnadasa
Hi RudiC Great. I can understand the code. I...
Hi RudiC

Great. I can understand the code. I have got in problem if I make little change in the entries -

If I shift values to middle in the line which means it contains heading spaces then...
2,870
Posted By krsnadasa
Hi Ravinder Thanks for looking into this. I...
Hi Ravinder

Thanks for looking into this. I have made this working using sed -

Here is my solution -

sed -ie...
2,870
Posted By krsnadasa
Hi RudiC Thanks. What I am looking for is that....
Hi RudiC
Thanks. What I am looking for is that. I need to read xml file and make sure whenever below lines encountered , i need follwing changes -
If I get line

keystoremyPass="xxx" />

I...
2,870
Posted By krsnadasa
Replacing tab value in xml file
Hi

I am working on xml file. I have to make sure below lines containing values within quotes are replaced by some character like "-".
Below are different lines in xml file.



Pattern 1:...
1,976
Posted By krsnadasa
Replacing character "|" in given character range
Hi

Here is the field description [

1|24xx|x96 |wewe|Aps (ueasTng) Ltd(00101|2500000)|001012561|558 |NYL|GB |G179300844|1012561038 |Orriva P|LC|GB |O718483442|Y


Field Length value ...
1,976
Posted By krsnadasa
Replacing character "|" in given character range
Hi Srini

Awesome. But My actual case is little different.

Actual file may be like that :
1|24xx|x96 |wewewewewe|Aps (ueasTng) Ltd(00101|2500000)|001012561|558 ...
1,976
Posted By krsnadasa
Replacing character "|" in given character range
Hi

I am having file :

1|2443094 |FUNG SIU TO |CLEMENT
2|2443095 |FUNG KIL FO |REMENT

This file contains only 3 fields delimeted by "|". Last field is a...
Showing results 1 to 25 of 104

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