Search Results

Search: Posts Made By: joseamck
Forum: Programming 06-17-2012
2,714
Posted By joseamck
This is the output ls: /sw/include: No such...
This is the output

ls: /sw/include: No such file or directory
ls: /sw/lib: No such file or directory

Then I didn't install gsl correctly?

I think this is not the right place where gsl is....
Forum: Programming 06-16-2012
2,714
Posted By joseamck
Library problem - not compiling in c
Ok I was trying to test if I installed correctly gsl, I followed the INSTALL file and still I don't know what is wrong. Here is a sample code to test gel,I got it from Random Number Generator...
22,261
Posted By joseamck
Thank you, I learned something today, thank...
Thank you,

I learned something today, thank you all. It works.
22,261
Posted By joseamck
For agama I tried this awk -f code.awk...
For agama

I tried this
awk -f code.awk file1.txt > file2.txt
and gave me this
awk: can't open file code.awk
source line number 1 source file code.awk
context is
>>> <<<
I'm not an...
22,261
Posted By joseamck
Hello, Thanks agama, but this is the...
Hello,

Thanks agama, but
this is the message I get after executing the code

awk: calling undefined function asort
input record number 1, file test.txt
source line number 1
22,261
Posted By joseamck
Sort each row (horizontally) in AWK or any
Hello,

How to sort each row in a document with numerical values and with more than one row. Example

Input data (file1.txt):
4 6 8 1 7
2 12 9 6 10
6 1 14 5 7

and I want the the output to...
3,779
Posted By joseamck
Chubler thanks I guess it didn't work for me....
Chubler thanks I guess it didn't work for me. Thank you for your time.

And thanks Ahamed it works fine. Thanks
3,779
Posted By joseamck
i get the error message extra characters...
i get the error message

extra characters after \ at the end of i command

it could be that Im using a different version or something. =/ any way of knowing that?

or is it possible to use awk?...
3,779
Posted By joseamck
Yea I was trying that also but it gives a...
Yea I was trying that also but it gives a warning:
command i expects \ followed by text


---------- Post updated at 06:13 PM ---------- Previous update was at 06:04 PM ----------

I tried...
3,779
Posted By joseamck
Insert row without deleting previous data using sed
Hello,

I want to add a new row to a file to insert data without deleting the previous data there.

Example:

file

a
b
c
d


Output

a
b
newtext
c
5,619
Posted By joseamck
It works The only change I made to your code...
It works
The only change I made to your code was the ">" to "<" to look like this (val<=$1)

but the code prints the values of file1 as well as a new row

example:
0.000189449
1.8945978E-04...
5,619
Posted By joseamck
expected output for the example above is ...
expected output for the example above is

1.7836914E-04 1.6709859E-18 1.6843205E-18 1.6807697E-18
1.7900289E-04 1.6891735E-18 1.6462933E-18 1.6532895E-18

for only the 1st and 7th entry in file1.
5,619
Posted By joseamck
Help with reading two input files in awk
Hello,

I'm trying to write an awk program that reads two files inputs.
example,

file 1:
0.00017835
0.000176738
0.00018811
0.000189504
0.000188155
0.000180065
0.000178991
0.000178252...
Showing results 1 to 13 of 13

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