Search Results

Search: Posts Made By: miriammiriam
2,198
Posted By miriammiriam
Yes! I got it now! Thank you. Problem...
Yes! I got it now!

Thank you.

Problem solved.
2,198
Posted By miriammiriam
the sc.awk is awk '$1 != "2014" {print...
the sc.awk is

awk '$1 != "2014" {print $1$4, $2, $3; next}
1
' pha.dat

and run it with

awk -f edit2.awk pha.dat > dnm.out


I will make other adjustments, I'll handle the...
2,198
Posted By miriammiriam
I use the command awk -f sc.awk pha.dat >...
I use the command

awk -f sc.awk pha.dat > dnm.out


Did not work!
What is the correct command to run awk script?
2,198
Posted By miriammiriam
I also tried something like that awk '{ ...
I also tried something like that

awk '{
if ($1 >=2014)
print $0;
else
print $1, $4, $2, $3;
}'


Could not make it work too...
2,198
Posted By miriammiriam
What is wrong with my if loop?
Hello everyone,

I need a little help. I wrote a cshell script to change the format of a file but it is not working.

input file is like that:

2014 3 20 15 0 5.270 40.7739 27.6471 ...
1,147
Posted By miriammiriam
Hello dear, It worked correctly. Thank you...
Hello dear,

It worked correctly. Thank you so much!:b:

---------- Post updated at 07:08 AM ---------- Previous update was at 07:07 AM ----------



Thank you that would work too
1,147
Posted By miriammiriam
Mulitiplication with two files
Hello everyone,

I want to say that this thread is not a homework. I need a csh or sh script to perturbate a 3D earthquke wave velocity model I developed so I just want to learn how to multiply...
937
Posted By miriammiriam
A Large Percent Problem
Hello everyone,

I have two matrices at same sizes. I need to re-calculate the numbers in matrix A according to the percentages in martix B

it is like

matrix A is

10.00 20.00 30.00 ...
815
Posted By miriammiriam
Run several codes at the same tim?
Hello everyone,

I want start 30 codes at the same time in 30 different directories in one terminal.

I tried this bu it makes it one by one

sh damp-0000/coderun
sh damp-0005/coderun
sh...
1,306
Posted By miriammiriam
Ok I see, I could not find any backup file but...
Ok I see, I could not find any backup file but olnly find a previous backup file which is what I do not need. Thank you I think it's gone :(
1,306
Posted By miriammiriam
I know, the file a did not changed of course. I...
I know, the file a did not changed of course. I want to bring back the changed file is which is in this case "myfile" not a.
1,306
Posted By miriammiriam
Bring back a file changed with sed
Hello everbody

I changed one of my important files with a false sed statement by mistake now I lost my file and I hope I could bring it back

what I did was:

sed '/^..//' a > myfile
...
1,028
Posted By miriammiriam
We tried te way you said but it could not find...
We tried te way you said but it could not find the files under the directories..

Here is our code and the result..


[gurbuz@localhost INVERSION]$ cat stack.csh
#!/bin/csh

foreach dir (`ls...
1,028
Posted By miriammiriam
one kind of file name and its path is: ...
one kind of file name and its path is:
/media/DATA1/receiver/rc/DATA/INVERSION/ARMT/baz_100_135/dist_60_90/09_245_0800.eqrwe set the variables

set year=`cut -c 1-2 data`
set jday=`cut -c 4-6...
1,028
Posted By miriammiriam
Searching for file names with variables
Hello everyone

We have a problem about searching and copying files with variables.

we have variables like $year $jday $date and we want to search the files whose name contain these variables. ...
5,691
Posted By miriammiriam
It is easier to see the lines now, I see ok I ll...
It is easier to see the lines now, I see ok I ll try this one thank youu
5,691
Posted By miriammiriam
It is working again perfectly, I also changed the...
It is working again perfectly, I also changed the format of the of the 1st file as the previous one (another way to solve the problem :) ), But changing it might effect other parts of the code which...
5,691
Posted By miriammiriam
0910 1 2048 32.38 40N20.01 28W36.24 10.85 ...
0910 1 2048 32.38 40N20.01 28W36.24 10.85 0.00 32.00 computed 24-Jul-12 ^@^@^@^@^@^@^@^@
MSDMP0 3.49KCTXP2 6.60KRCMP0 6.63BOZMP0 6.94ARMTP2 8.03FRR6P0 ...
5,691
Posted By miriammiriam
Heey it works perfectly and could you please...
Heey it works perfectly and could you please explain the code a little bit it is really compilicated for me to understand :o

And Again thank you everyone who tryed to help :)

---------- Post...
5,691
Posted By miriammiriam
Hello everybody Yes there header lines...
Hello everybody

Yes there header lines between eveeeery record. Which are starting with date:

0910 1 2048 32.38 40 20.88 28 35.53 9.62 0.00This line contains 48 characters.

And the...
5,691
Posted By miriammiriam
Thank you very much my friend I know it will...
Thank you very much my friend I know it will work but it gives an error again:

sezim@localhost#awk -f gauss.awk f=noisedata mydata
awk: gauss.awk:2: for(=1;i<=NF;i++) ...
5,691
Posted By miriammiriam
I see that it is a little bit complicated I could...
I see that it is a little bit complicated I could not understand what is "p" for and when I run the script:



sezim@localhost#cat gauss.awk
awk ' { ...
2,709
Posted By miriammiriam
I see that it is a little bit complicated I could...
I see that it is a little bit complicated I could not understand what is "p" for and when I run the script:

sezim@localhost#cat gauss.awk
awk '
{
for(i=1;i<=NF;i++) ...
5,691
Posted By miriammiriam
Ohh yes it must be continue with the 7th number...
Ohh yes it must be continue with the 7th number till, for example 11000th number...
5,691
Posted By miriammiriam
The process is all the way same to the end of the...
The process is all the way same to the end of the file until all the noise numbers will be added to all the times after station names... And the lines with 0 0.000 will stay the same
Showing results 1 to 25 of 41

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