Search Results

Search: Posts Made By: Pintug
2,162
Posted By Pintug
@rdrtx1 got exactly what I had to do!! Thank you...
@rdrtx1 got exactly what I had to do!! Thank you so much!!! :)
2,162
Posted By Pintug
For example I have 1.txt 2.txt is ...
For example I have 1.txt



2.txt is


I should obtain a 1.txt modified , i.e. the row " 2 3 " does not appear because "3" appears just one time in 1.txt



I will then have to replace "3"...
2,162
Posted By Pintug
Awk: Counting occurrences between two files
Hi,

I have two text files (1.txt and 2.txt).

2.txt contains two columns which are extracted from 1.txt using a simple if(condition) print.

I want to:
- count how many times the values...
7,424
Posted By Pintug
:( thank anyways. At least now I know that that...
:( thank anyways. At least now I know that that code is correct, so there should be something strange with GAMS I do not know..
7,424
Posted By Pintug
I don't know exactly why, but if I delete the -f...
I don't know exactly why, but if I delete the -f I get an error from GAMS compiler..


Here my problem is that it seems that GAMS doesn t recognize the (NR%3) statement. I do not see any error in...
7,424
Posted By Pintug
Awk: convert rows to columns every n lines
Hi guys!

I use AWK commands under GAMS to predispose the data files to be read by GAMS.
I have a file which contains groups of data I need. Unfortunately I have the data spread in 3 rows for each...
1,637
Posted By Pintug
The input file is a record of data. So...
The input file is a record of data.

So between expression like these

"0 / END OF TRANSFORMER DATA, BEGIN AREA DATA"

"0 / END OF AREA DATA, BEGIN TWO-TERMINAL DC DATA"

there s a list of...
1,637
Posted By Pintug
Thanks vidyadhar85 for your help. Anyways the...
Thanks vidyadhar85 for your help. Anyways the situation has not changed. The output file is still empty! It's 4 hours I'm thinking about this things and it's driving me crazy!
1,637
Posted By Pintug
Awk: how to copy a range of rows in GAMS environment
Hi

I have a problem in using awk in GAMS. I have to copy a part of a .txt file selecting the rows between these two lines

"0 / END OF TRANSFORMER DATA, BEGIN AREA DATA"

"0 / END OF AREA...
Showing results 1 to 9 of 9

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