Search Results

Search: Posts Made By: supernono06
3,884
Posted By supernono06
Copy txt file into excel vbscript
Hi everybody,

I am working on Windows 10 and using cygwin.
I have a vbscript as follows:

Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
Set wb1 =...
2,804
Posted By supernono06
For the first issue, once the outside option is...
For the first issue, once the outside option is used, one has to add inside for all other keys
2,804
Posted By supernono06
Thanks Don Cragun. But I don't know how to do...
Thanks Don Cragun. But I don't know how to do that, can you please give me an example or show me? Also how to differentiate the position of the legends in the different subplots?
2,804
Posted By supernono06
Different set key multiplot gnuplot
Hello everybody,

I am using Windows 10. I need to plot several graphs simultaneously with Gnuplot. The script is:


GNUTERM = "wxt"
set terminal wxt
set termoption enhanced
set encoding...
5,923
Posted By supernono06
I got it Corona688 and in my case it works...
I got it Corona688 and in my case it works perfectly and does what I need. Of course not with bash, but with a .bat file:


pushd \\files\share\path (file://files/share/path)
start C:\"Program...
5,923
Posted By supernono06
I did not manage yet to get the net use function...
I did not manage yet to get the net use function working but I got some progress with that script:


pushd \\files\share\path (file://files/share/path)
start C:\"Program Files...
5,923
Posted By supernono06
Thank you Corona688, I will try this. I also had...
Thank you Corona688, I will try this. I also had in mind to use pushd/popd, probably net use does the same?
5,923
Posted By supernono06
I have a batch file calling the vbscript, and...
I have a batch file calling the vbscript, and when it is on shared directory I got
"CMD does not support UNC paths as current directories"
5,923
Posted By supernono06
Simulate keypress in bash
Hello everybody,

I am using Windows 10 and cygwin/bash.

I need to write a script in bash which simulates opening of a program and then press some keys such as F5, ENTER and ALT+F4.

I have...
2,629
Posted By supernono06
Thanks a lot RavinderSingh13, everything works as...
Thanks a lot RavinderSingh13, everything works as expected!

Supernono06
2,629
Posted By supernono06
Hello RavinderSingh13, Thanks a lot. Just a...
Hello RavinderSingh13,

Thanks a lot. Just a last thing please.

I have another file 1 as follows:


...
XXX; YYY; ZZZ; AAA string1 BBB; END
XXX; YYY; ZZZ; AAA string1 BBB; END
......
2,629
Posted By supernono06
Hello RavinderSingh13, Thanks a lot. It...
Hello RavinderSingh13,

Thanks a lot. It works very well.

Here is my last question.

I have another file 2 with content:
3.333 #3M
4.251 #2M
1.121 #1.5M
5.456 #1M

With the...
2,629
Posted By supernono06
Thanks a lot RavinderSingh13. This works....
Thanks a lot RavinderSingh13.

This works. I have another file 1 with content:
...
set title "XXX YYY I = 3 mol L^{-1} pH = string1"
...
set title "XXX YYY I = 2 mol L^{-1} pH = string2"...
2,629
Posted By supernono06
Hello RavinderSingh13, Thanks but it is...
Hello RavinderSingh13,

Thanks but it is not working. With this script, the replacement takes place in the second field of the four 4th lines of the files, and all other 2nd fields of the...
2,629
Posted By supernono06
Hello RavinderSingh13, Thanks, but it is not...
Hello RavinderSingh13,

Thanks, but it is not doing what I need, I will explain it better.

The file 1 content is:
…..
XXX string1
….
YYY string2
...
ZZZ string3
...
AAA string4
…....
2,629
Posted By supernono06
Hello RavinderSingh13, It works perfectly,...
Hello RavinderSingh13,

It works perfectly, many thanks.

If n is large, is there a way to use a loop to do the following:


awk -v n=1 'FNR==NR{a[FNR]=$0;next} {sub("string1",a[n])} 1' file2...
2,629
Posted By supernono06
Subsitute string in file 1 by line n of file 2
Hello,

My OS is Windows 10 and I am using Cygwin.

The content of file 1 is:
XXX string1

The content of file 2 is
4.156
2.312
3.527
1.687
etc....

I need to replace string 1 in file 1...
1,424
Posted By supernono06
Thanks, works perfectly!
Thanks, works perfectly!
1,424
Posted By supernono06
I meant for lines containing USE solution 74 till...
I meant for lines containing USE solution 74 till USE solution 93
1,424
Posted By supernono06
Thanks. This works. But how can adapt...
Thanks. This works.

But how can adapt this script to apply it for e.g. lines 74 to 93?
1,424
Posted By supernono06
Thanks. But your script does the replacement...
Thanks.

But your script does the replacement for all the lines and not only for those beginning with USE solution 2 to USE solution 29.
1,424
Posted By supernono06
Replace string2 with string3 on all lines starting with string1
My OS is Windows 10 and I am using Cygwin.

The file 1 content is:

USE solution 2; -4.000
USE solution 3; -4.000

USE solution 29; -4.000
USE solution 30; -4.000
USE solution 31; -4.000...
2,234
Posted By supernono06
Now it works perfectly, many thanks!
Now it works perfectly, many thanks!
2,234
Posted By supernono06
Thanks vgersh99, your code works perfectly. ...
Thanks vgersh99, your code works perfectly.

Thanks also to RudiC, but there is a problem. Indeed, not all numbers get their formatting changed to the scientific notation, especially in the...
2,234
Posted By supernono06
Thank you! Yes, exactly, I want to keep the...
Thank you!

Yes, exactly, I want to keep the 15 fields, but change the formatting of the fields 10, 11, and 12 in the original file. The input is:

304 1 2 3 0.079 7 0.666 0.0 0.88 0.000201...
Showing results 1 to 25 of 26

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