Search Results

Search: Posts Made By: arindam guha
2,504
Posted By arindam guha
File contains the values like this: LOC ...
File contains the values like this:
LOC
<Q1:Location>100000035647</Q1:Location>
<Q1:Location>012010087120</Q1:Location>
<Q1:Location>100000057069</Q1:Location>...
2,504
Posted By arindam guha
PFA the file,script. want to delete the files,hav...
PFA the file,script. want to delete the files,hav the match values from that location.
2,504
Posted By arindam guha
bash shell.
bash shell.
2,504
Posted By arindam guha
Grep Command
I have one text file, contains some values like <Q1:Name>1000000</Q1:Name>. I want to read the values and stores into an array for searching the each values into a file locations.
If I use this ...
1,259
Posted By arindam guha
Thanks all of u.....got the desired output
Thanks all of u.....got the desired output
1,259
Posted By arindam guha
Put a character before each line
i have few lines:
3 4 5 6
#72 9 9 9
4 5 67 8 9
#4 6 8 92 1i want to put '#' before each line.
i used this
awk '{print "#" $0;}it gave
#3 4 5 6
##72 9 9 9
#4 5 67 8 9
##4 6 8 92 1but i...
1,342
Posted By arindam guha
Thanks a lot...
Thanks a lot...
1,342
Posted By arindam guha
Thanks.... It works fine... But if the values...
Thanks....
It works fine...
But if the values are not same type
C_Random_Random1_130724
Java_Random_130523
Then what will be the command
1,342
Posted By arindam guha
Sorting the data with date
Hi,
PFB the data:
C_Random_130417
Java_Random_130518
Perl_Random_120519
Perl_Random_120528

so the values are ending with year,i.e.,130417[yymmdd]
i want to sort the values with date.
i...
1,024
Posted By arindam guha
Thank you. it works. can you please tell me what...
Thank you. it works. can you please tell me what $NF does?
1,024
Posted By arindam guha
i am using cut -d "/" -f4 file1.txt. But the...
i am using
cut -d "/" -f4 file1.txt. But the cloumn number is not fixed.
1,024
Posted By arindam guha
Column Extraction for a particular match
Hi,
PFB the input:

unix/java/perl/random.txt
unix1/java1/random1.txt
unix2/java2/perl2/random2.txt
unix3/java3/random3.txt
unix4/random4.txt

i want the following output:
random.txt...
3,409
Posted By arindam guha
Search and replace a array values in perl
Hi,
i want to search and replace array values by using perl


perl -pi -e "s/${d[$i]}/${b[$j]}" *.xml


i am using while loop for the same. if i excute this,it shows "Substitution...
3,085
Posted By arindam guha
Hi, if i use array, how can i replace it: ...
Hi,
if i use array, how can i replace it:

perl -pi -e "s/${d[$i]}/${b[$j]}" *.xml

if i execute, it shows
Substitution replacement not terminated at -e line 1.
3,085
Posted By arindam guha
Thanks.....
Thanks.....
3,085
Posted By arindam guha
Thank u. i need one more help. perl -pi...
Thank u.
i need one more help.

perl -pi -e 's/$c/$d/' test.txt

suppose i save the values in c and d variables. test.txt contains $c value.
i want to replace this value with $d value.
if i...
3,085
Posted By arindam guha
Thank u....it works fine ---------- Post...
Thank u....it works fine

---------- Post updated at 07:17 PM ---------- Previous update was at 07:15 PM ----------

Hi Alister,
if i use
echo $value1 | sed 's/[()@.+/]/\\&/g'
it prints...
3,085
Posted By arindam guha
Escape special character
My input is:
jdbc:Oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.147.109.211)(PORT=1526))(CONNECT_DAT A=(SID= MWDBD22)))

In the search pattern, ( and ) and . and @ are special RE, and...
1,895
Posted By arindam guha
Hi, Can i place those escape characters by...
Hi,
Can i place those escape characters by script automatically? i mean to say that when it gets one special character,place '/' before this in automatic way.
1,895
Posted By arindam guha
Thank u. now i can replace by using \ for each...
Thank u.
now i can replace by using \ for each special character.
1,895
Posted By arindam guha
Search and replace a line in perl
Hi All,
i can replace a perticular value in sentence using perl.
perl -pi -e 's/old/new/' sample.txt
but i am not able to replace whole string by perl.

file1 contains...
11,372
Posted By arindam guha
i got your prob. see my question is clear. i got...
i got your prob. see my question is clear. i got my answer frm yoda.
but if i use 2 whole xml file,i didn't get any changes.
if you use 2 whole files,you will get the prob. i didn't understand how...
11,372
Posted By arindam guha
Yeah.....but I am not able to parse the xml...
Yeah.....but I am not able to parse the xml files....can u pls post the code....I am learning the awk.
11,372
Posted By arindam guha
@Yoda: i am not getting the required output if i...
@Yoda: i am not getting the required output if i use 2 whole files in this script.
11,372
Posted By arindam guha
i attached my 2files,source and taget. pls use...
i attached my 2files,source and taget.
pls use 2 whole files as your input not sample fragment of data.

thanks for your help. but i m not getting the result if i use 2 files as my input. yeah i...
Showing results 1 to 25 of 32

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