Search Results

Search: Posts Made By: meghana
3,818
Posted By meghana
Thanks for the reply, quine. I think when we...
Thanks for the reply, quine.
I think when we have it in quotes, it should not matter even if it need backslash ..

My problem is solved, i need to use chomp($chk); .. then it worked fine..
...
3,818
Posted By meghana
help- perl script
Hi,

I have a sample file, which has a record ..
</ab><cd>3410</cd>
I need to use a if clause to check ..
my $chk=`tail $file | grep "<cd>"| cut -c 1-9`;
print "\n tag is $chk \n";
if...
1,351
Posted By meghana
Thanks era, the one liner helps! :)
Thanks era, the one liner helps! :)
1,351
Posted By meghana
Thanks for you reply era. THis is the code i am...
Thanks for you reply era. THis is the code i am using to fetch the number value in between <cd>????</cd> .. but this is the case when this tag is in the same way in all files .. but when...
1,351
Posted By meghana
Thanks era, yes they are always in the same line....
Thanks era, yes they are always in the same line. Can you please explain me what exactly is it doing?
as far as my understanding goes - (.*?) this is fetching the all the values in between the tags...
1,351
Posted By meghana
help with perl
Hi,

I have a set of files where one of the lines in each file will have a <cd> tag in it when i grep for it. It may be in two formats,

1. </ab><cd>35250</cd>
2. <cd>35250</cd>

However it...
10,055
Posted By meghana
hi, sorry about that .. will make sure that...
hi,
sorry about that .. will make sure that wont happen again.

thanks for your reply, but i am looking for perl code, can you be able to help me with that.
Thanks again!
10,055
Posted By meghana
Any help on this one please .. thanks
Any help on this one please .. thanks
10,055
Posted By meghana
oh .. is it a perl code that you are suggesting??
oh .. is it a perl code that you are suggesting??
10,055
Posted By meghana
sorry i did not get your question but, all i need...
sorry i did not get your question but, all i need is to split the last but one line into 2lines ..

</name><ft>4264</ft>

CONVERT TO

</name>
<ft>4264</ft>

Please let me know if i am...
10,055
Posted By meghana
help on a perl script to edit file
Hi,

sample file looks like this..

<hp>
<name>
<detail>adsg</detail>
...
...
</name><ft>4264</ft>
</hp>

I need to edit the last but one line using perl script. I want the format to be...
7,197
Posted By meghana
Thanks for the reply, i am doing it in a script...
Thanks for the reply, i am doing it in a script .. can you tell me how can i do that ..
7,197
Posted By meghana
edit a file using perl
Hi,

sample file looks like this..

<hp>
<name>
<detail>adsg</detail>
...
...
</name><ft>4264</ft>
</hp>

I need to edit the last but one line. I want the format to be ..

<hp>
<name>...
5,917
Posted By meghana
thanks a bunch, can you explain what is the...
thanks a bunch,

can you explain what is the sed doing exactly.. appreciate ur help
5,917
Posted By meghana
get last characters in ksh
Hi,

Here the way the txt file looks like..

100|abcd|6899|xyz
112|dlkja|79311|
432|adjkl|1348|iaw

I need the last characters after the last '|' ..

thanks
18,346
Posted By meghana
Hi, This is the sample data i have ... ...
Hi,

This is the sample data i have ...

Some kind of text 1234567891 abcd February 14, 2008 03:58:54 AM 0.00 descr lmnop
Some kind of text 1234567891 abcd February 14, 2008 03:58:54 AM 0.00 ...
18,346
Posted By meghana
Thanks kevin.. appreciate ur replies.. will try...
Thanks kevin.. appreciate ur replies.. will try them out.. thanks a lot...:)
18,346
Posted By meghana
i will correct the loop position..thanks for that...
i will correct the loop position..thanks for that jim...
hey sb008.. im writing a perl script.. not a shell.. but still thanks for ur suggestion.. i can use it when i do a shell ..

thanks for...
18,346
Posted By meghana
small correction.. there can be more than 2 byte...
small correction.. there can be more than 2 byte space between 2 columns...
it should replace with delimiter '|' if it has two consecutive spaces .. not just one..

as the first column has single...
18,346
Posted By meghana
replace space with delimiter in whole file -perl
Hi

I have a file which have say about 100,000 records..
the records in it look like

Some kind of text 1234567891 abcd February 14, 2008 03:58:54 AM lmnop

This is how it looks.. if u...
19,911
Posted By meghana
Hey thanks for the reply.. but wc -l filename...
Hey thanks for the reply.. but
wc -l filename ... gives (say count is 200)

output:
200 filename

-- the count includes filename too.. and i want to avoid it..

Thanks
19,911
Posted By meghana
grep all records in a file and get a word count -perl
Hi,

I have a file .. file.txt .. i need to get a total record count in the files into a $variable.. im using perl script

thanks
16,907
Posted By meghana
im sorry about the last post.. it was some weird...
im sorry about the last post.. it was some weird character i couldnt copy it properly... i have a question...
foreach my $file (@array) {
open(FILE,"<","$file");
while (my $line = <FILE>)
{
if...
16,907
Posted By meghana
Thanks.. i will do a search on it..
Thanks.. i will do a search on it..
16,907
Posted By meghana
**** Im unable to understand what kind of...
****

Im unable to understand what kind of character is that.. the one which looks like a box.. i thought it was a tab.. but im not sure...
can anyone help me??...
thanks
Showing results 1 to 25 of 56

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