Search Results

Search: Posts Made By: ida1215
947
Posted By ida1215
Looping through the contents of array for output name
Hi all,

I am trying to loop through the string contents of an array, to add it during the saving of the output files. I am trying this code to print each column and save it to unique file name,...
1,211
Posted By ida1215
Thank you for pointing that out. In the output...
Thank you for pointing that out. In the output file, how can I modify "c" to have the same length by adding leading zeros, such that output1.txt should be output01.txt?thanks again
1,211
Posted By ida1215
Thank you for the quick reply and saving my day....
Thank you for the quick reply and saving my day. :)
1,211
Posted By ida1215
Reading and appending a row from file1 to file2 using awk or sed
Hi, I wanted to add each row of file2.txt to entire length of file1.txt given the sample data below and save it as new file. Any idea how to efficiently do it. Thank you for any help.


input file...
1,146
Posted By ida1215
Thank you very much for the quick reply. I will...
Thank you very much for the quick reply. I will give it a try and will get back to you.:)
1,146
Posted By ida1215
Hi, Yes, I typed it incorrectly. It should be...
Hi,
Yes, I typed it incorrectly. It should be 200006-07_005.txt. I have tried the following but I did the saving of output files manually and its very inefficient.


sort -n -k4...
1,146
Posted By ida1215
Sorting and saving values based on unique entries
Hi all,

I wanted to save the values of a file that contains unique entries based on a specific column (column 4). my sample file looks like the following:

input file: 200006-07file.txt
145 35...
1,373
Posted By ida1215
Hi neuronscott, thank you for this time saver...
Hi neuronscott, thank you for this time saver code. its just what I needed,:)

If its ok, I would like to know, whats this part of the command does?

[ -e "$csv" ]
Thanks again.
1,373
Posted By ida1215
Deleting a file with no corresponding pair
Hi, I am working with 2 sets of files (*csv and *asc) and I wanted to delete asc file with no corresponding csv counterpart. I did tried it manually but its been difficult working with a longer list...
3,934
Posted By ida1215
Thanks again for the explanation, :)
Thanks again for the explanation, :)
3,934
Posted By ida1215
Thank you very much for the very clean code and...
Thank you very much for the very clean code and the explanation on my script. My default shell is bash and your code worked perfectly. :)

One quick question, what does the following part mean...
3,934
Posted By ida1215
Hi, I tried something like this but it...
Hi,

I tried something like this but it doesnt even get past the first line. :(


for i in {1..3}
do awk 'NR==$i{print $1}' file2.txt > $i.tmp
paste file1.txt $i.tmp | awk...
3,934
Posted By ida1215
Multiplication of a column from 2 files using awk
Hi,

I have two files (file1.txt, file2.txt) in which, I would like to multiply all the values in file1 with the first row value of file2, file1 * second row value of file2, file1 * third row...
4,350
Posted By ida1215
Thanks so much, it worked perfectly. ...
Thanks so much, it worked perfectly.

---------- Post updated at 08:16 PM ---------- Previous update was at 01:59 AM ----------

Hi again, just a quick question. how can I print the output from...
3,635
Posted By ida1215
Hi scrutinizer, Thank you very much for the...
Hi scrutinizer,

Thank you very much for the code, it worked smoothly,:)

Quick question: what does this condition means?

if( $1!~/[[:alpha:]]/ )

Thanks much again
3,635
Posted By ida1215
Table look up using awk or any other means
Hi all,

I wanted to do a lookup table method using awk or any other commands. I would really appreciate any help on this. my sample input and desired outputs are given below. file1.txt is my...
4,350
Posted By ida1215
Computing for linearly-interpolated values using awk
Hi,

I want to compute for linearly-interpolated values for my data using awk, any help is highly appreciated.

How do I apply the linear interpolation formula to my data in awk given the...
1,672
Posted By ida1215
Thank you very much Corona688. The data I posted...
Thank you very much Corona688. The data I posted is just a part of the whole data and those were extracted prediction values at certain points and might explain the non-normal distribution (?)....
1,672
Posted By ida1215
Thanks for having a check, :).
Thanks for having a check, :).
1,672
Posted By ida1215
Finding data value that contains x% of points
Hi, I need help on finding the value of my data that encompasses certain percentage of my total data points (n). Attached is an example of my data, n=30. What I want to do is for instance is find the...
5,742
Posted By ida1215
Thanks again and sorry bout the confusion on the...
Thanks again and sorry bout the confusion on the header on the previous post. So, in awk its like NR=1{print}, something to that effect? Thanks again.
5,742
Posted By ida1215
Hi again, Thanks much for the explanation on perl...
Hi again, Thanks much for the explanation on perl syntax. Anyway, This is the sample output am getting when I run the perl script. the columns correspond to the obs, frequency and cumulative...
5,742
Posted By ida1215
Hi balajesuri, thanks for your quick reply. yes,...
Hi balajesuri, thanks for your quick reply. yes, I need the evaluated cumulative frequency. There's a small glitch though, it doesn't print the first row and as such the last cumulative frequency...
5,742
Posted By ida1215
Calculating cumulative frequency using awk
Hi, I wanted to calculate cumulative frequency distribution of my data that involves several arithmetic calls. I did things in excel but its taking me forever. this is what I want to do:

var1.txt...
1,704
Posted By ida1215
Thanks much msabhi. I tried the xargs and used...
Thanks much msabhi. I tried the xargs and used split to divide the lines to individual files.
Showing results 1 to 25 of 127

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