Search Results

Search: Posts Made By: bflinchum
Forum: Programming 09-26-2011
4,210
Posted By bflinchum
Output Arrays as columns perl
Ok so I am new to perl and I am trying to write a random .cpt file for a GMT script for a class. Anyways I successfully read in the columns out of the file I wanted and I was able to generate 3...
11,479
Posted By bflinchum
I don't know if you guys care, but since you...
I don't know if you guys care, but since you helped I finally got back to town and for some reason it didn't like the white space in my loop from the editor!
1,998
Posted By bflinchum
Ok i tinkered with it and it makes sense now!...
Ok i tinkered with it and it makes sense now! Thank you so much. I think I will use that trick quite a bit. :D
1,998
Posted By bflinchum
So that makes sense. I played around with it and...
So that makes sense. I played around with it and have a data set that looks like:
1 2 3 4 5 6 7
12 4 5 0 8 5 4
12 98 7 675 98 89 98

if I: awk 'NR==3 {print $2}' file1.txt I get 98. if I make...
1,998
Posted By bflinchum
Niether of them worked; the problem was it seemed...
Niether of them worked; the problem was it seemed to pick random points not the peaks (I plotted them using GMT).

Instead of accepting defeat can I trouble you for a little explanation, if I...
1,998
Posted By bflinchum
Finding when a file switches direction using awk
Hi guys I have a file that is filled with x,y values:

0.000000 0.00129578
0.000191 0.00272187
0.000381 0.0125676
0.000572 0.0120014
0.000763 0.00203461
0.000954 0.00682248
0.001144...
11,479
Posted By bflinchum
I guess compile is in the right word, it should...
I guess compile is in the right word, it should be run.

chmod +x code.csh

then:
./code.csh

Today after work I will be trying some other loops. Thanks for all the help.
11,479
Posted By bflinchum
Is that my problem it links to bash: echo...
Is that my problem it links to bash:

echo $SHELL Yields:
/bin/bash

I assume it needs to say '/bin/csh'?

if this is the case do it do by:

setenv SHELL = /bin/csh
11,479
Posted By bflinchum
I did the 'whereis csh' and there is only one...
I did the 'whereis csh' and there is only one locate in '/bin/csh' just as it should be. I wrote it on my machine and tried compiling and it wont work. As soon as I move it to the linux cluster it...
11,479
Posted By bflinchum
Well maybe you isolated the problem. I went into...
Well maybe you isolated the problem. I went into my csh by typing csh in my terminal, then I type:
csh --version
And got:
tcsh 6.15.00 (Astron) 2007-03-03 (x86_64-apple-darwin) options...
11,479
Posted By bflinchum
foreach loop working in terminal but not in the script
Hi, I am new here I have used the forums a long time to search for things they are very helpful. I have unfortunately used up all my resources (professors, grad students) and need some help.

I...
Showing results 1 to 11 of 11

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