Search Results

Search: Posts Made By: bananamen
7,013
Posted By bananamen
Thanks pamu for your help :D Actually there...
Thanks pamu for your help :D

Actually there is no problem with your code. Just formatting of the input file giving me the error :D
2,624
Posted By bananamen
Thanks everyone for your help :D
Thanks everyone for your help :D
2,624
Posted By bananamen
The input taken from a configuration file whose...
The input taken from a configuration file whose content does not change (configured just once).

Thank !
2,624
Posted By bananamen
May i check what if the INPUT is from a text file...
May i check what if the INPUT is from a text file with many similar occurrence. How do i keep each occurrence as a individual variable?
7,013
Posted By bananamen
Hi pamu, the output remains the same. With the...
Hi pamu, the output remains the same. With the first X being replaced by a comma.

Another question, awk give me this message when the input file don't have the similar pattern. is there anyway...
2,624
Posted By bananamen
Thanks bakunin!! :D
Thanks bakunin!! :D
2,624
Posted By bananamen
[Solved] How to extract integer out of a string?
Input:

XXX:1,XXX:3,XXX:3

Output:

A=1
B=3
C=3

Below code is what i do currently. However it doesn't work out for all cases. As some times the last digit extracted is giving me error. It...
7,013
Posted By bananamen
text1.txt XXX XXX XXXX:1234,1111_111,ABCD...
text1.txt

XXX XXX XXXX:1234,1111_111,ABCD 123456,XXXX XXXXXX:12345,XX,YYYYY1,ZZZZZ1,
XXX XXX XXXX:1234,1111_111,BCDF 123456,XXXX XXXXXX:12345,XX,YYYYY2,ZZZZZ2,
XXX XXX XXXX:1234,1111_111,CDEF...
7,013
Posted By bananamen
New input file: XXX XXXXX:1234,1111_111,ABCD...
New input file:
XXX XXXXX:1234,1111_111,ABCD 123456,XXXX XXXXXX:12345,,XX,YYYYY1,ZZZZZ1,

Sorry that i forgot to put post the new input file. it look somehow similar to the previous input file.
7,013
Posted By bananamen
Desired Output: XXX XXX XXXX:1234,1111_111,ABCD...
Desired Output:
XXX XXX XXXX:1234,1111_111,ABCD 123456,XXXX XXXXXX:12345,XX,YYYYY1,ZZZZZ1,

Output:
,XX XXX XXXX:1234,1111_111,ABCD 123456,XXXX XXXXXX:12345,YYYYY1,ZZZZZ1,

The output initially...
7,013
Posted By bananamen
Thank pamu ! It solved my problem ! Millions of...
Thank pamu ! It solved my problem ! Millions of thanks !
7,013
Posted By bananamen
text1.txt Code: XXX XXX...
text1.txt

Code:
XXX XXX XXXX:1234,1111_111,ABCD 123456,XXXX XXXXXX:12345,XX,YYYYY1,ZZZZZ1,
XXX XXX XXXX:1234,1111_111,BCDF 123456,XXXX XXXXXX:12345,XX,YYYYY2,ZZZZZ2,
XXX XXX...
7,013
Posted By bananamen
XXX XXX XXXX:1234,1111_111,ABCD 123456,XXXX...
XXX XXX XXXX:1234,1111_111,ABCD 123456,XXXX XXXXXX:12345,AAAAAA1,BBBBBB1
XXX XXX XXXX:1234,1111_111,BCDF 123456,XXXX XXXXXX:12345,AAAAAA2,BBBBBB3
XXX XXX XXXX:1234,1111_111,CDEF 123456,XXXX...
7,013
Posted By bananamen
It gave me the wrong output. output: XXX XXX...
It gave me the wrong output.
output:
XXX XXX XXXX:1234,,,XXXX XXXXXX:12345
XXX XXX XXXX:1234,,,XXXX XXXXXX:12345
XXX XXX XXXX:1234,,,XXXX XXXXXX:12345

Please use code tags
7,013
Posted By bananamen
text1.txt XXX XXX XXXX:1234,1111_111,ABCD...
text1.txt
XXX XXX XXXX:1234,1111_111,ABCD 123456,XXXX XXXXXX:12345,XX,YYYYY1,ZZZZZ1,
XXX XXX XXXX:1234,1111_111,BCDF 123456,XXXX XXXXXX:12345,XX,YYYYY2,ZZZZZ2,
XXX XXX XXXX:1234,1111_111,CDEF...
7,013
Posted By bananamen
Nice ! I got what i wanted. Thank pamu and...
Nice ! I got what i wanted. Thank pamu and balajesuri. You guys are good ! :D

---------- Post updated at 02:13 AM ---------- Previous update was at 01:57 AM ----------

Pamu, do you mind to do...
7,013
Posted By bananamen
Thanks pamu! But same as the previous reply...
Thanks pamu!

But same as the previous reply it has syntax error. Sorry.. I'm kinda new with shell scripting. Any guidance will be appreciated :)
7,013
Posted By bananamen
Thanks ! any idea why it is causing a...
Thanks !

any idea why it is causing a syntax error?
7,013
Posted By bananamen
How to append portion of a file content to another file when a certain pattern is matching?
Hi ladies and gentleman.. I have two text file with me. I need to replace one of the file content to another file if one both files have a matching pattern.

Example:
text1.txt:
ABCD...
Showing results 1 to 19 of 19

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