Search Results

Search: Posts Made By: twistedpair
2,817
Posted By twistedpair
The case you have mentioned is selecting the text...
The case you have mentioned is selecting the text in one file and selecting some other text in second file without deselecting in first file. In this case the text in first file shows as underlined...
2,817
Posted By twistedpair
Issue with selecting the text in gvim
Hi, I wanted to select the text in gvim using mouse for coping. some times it works fine and full text will be selected and copied to clipboard if it is like shown in first fig. Paste of the copied...
1,784
Posted By twistedpair
How to add a line in every file with perl commandline?
Hi, i want to add a line at the beginning of every file in a directory.
perl -i.bkp -p -e 'print "#include /verif/pdd1/exu/sxs/6sTest/reset/dfu/top_level.reset\n" if $. == 1' *.reset

But this...
2,110
Posted By twistedpair
Hi all, Thanks for reply. But i need a perl...
Hi all, Thanks for reply. But i need a perl command for the above requirement, assuming the opcode is in a variable which i got from another file .
2,110
Posted By twistedpair
Printing next 6 lines from the line of pattern match in PERL
Hi, i have a big file having many opcodes.
if (opcode="01110000000100000000" ) then --fadd
result.opcode := "01110000000100000000";
result.s0 := '1';
result.s1 ...
3,368
Posted By twistedpair
HI Thanks for reply, $p is the value iam...
HI Thanks for reply,

$p is the value iam input iam reading

my $p = <STDIN>;
print "p: $p:;
open(SHW,">divw_unsigned_$p_50_$k.reset") or die $!;
print SHW "STICK divw_unsigned.cfg_32 ", ...
3,368
Posted By twistedpair
How to create files with two or more variables in its names?
Hi all,
Iam writing a perl script to create many files with variables in their name.
i am able to do it, if iam using only one variable. But with two variables the file
names are NOT getting...
932
Posted By twistedpair
Thanks for reply. after reading your reply to...
Thanks for reply. after reading your reply to recall logical AND i searched on internet about it. I have found the following link in support of your reply that 2nd condition gets evaluated only if...
932
Posted By twistedpair
Best way to write TWO if conditions
HI all,
In PERL, I want to know which is best practice among the two methods to write TWO IF conditions.
In first method both conditions are evaluated every time $iop is fetched. but in the second...
1,349
Posted By twistedpair
Thanks, i got it where i missed. I just did chomp...
Thanks, i got it where i missed. I just did chomp of the variable. Now its working. I think when i extracted $ra new line character also came. So i removed it. It took almost 4 hours for to do...
1,349
Posted By twistedpair
HI greet_sed iam getting some different...
HI greet_sed

iam getting some different errors when i tried your code.

Unquoted string "say" may clash with future reserved word at temp2.pl line 9.
No such class say at temp2.pl line 4, near...
1,349
Posted By twistedpair
the vaule of $ra=000000000000096C Now i want...
the vaule of $ra=000000000000096C

Now i want the first line of a file that is having the value 000000000000096C
for example:
I 000000000000096C 48000000 * 000000000000096C b *...
1,349
Posted By twistedpair
How to get lines having a variable in perl?
Hi, This might be simple question. But i couldn't find the answer.
#$ra is having a value which i have got from some other file
I want the first occurrence of the line having the value that is in...
1,225
Posted By twistedpair
can you help to delete this thread. I tried but...
can you help to delete this thread. I tried but not able to do. Editing option is there but no delete option

---------- Post updated 04-08-13 at 11:09 AM ---------- Previous update was 04-07-13...
1,294
Posted By twistedpair
How to go to a line having a particular word?
Hi all,
When i open a file (*.SUM*), I want the cursor to go to a line having a particular word (: ERROR). and that line should have the first occurrence word(: ERROR) from the beginning of the...
1,225
Posted By twistedpair
How to go to the line having a particular word?
Hi,
When i open a file (*.SUM*), I want the cursor to go to a line having a particular word (: ERROR). and that line should have the first occurrence word(: ERROR) from the beginning of the gvim...
8,615
Posted By twistedpair
How to store result of grep into a variable?
In a directory i have a file *output* whose contents are changing for every simulation.
zgrep "trace file is" *output* | zgrep g
o/p: trace file is Int_01.1352176388z4f56ec33.0.trace.gz

I want...
Showing results 1 to 17 of 17

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