Search Results

Search: Posts Made By: rpf
1,140
Posted By rpf
it works fine thank you RudiC
it works fine thank you RudiC
1,140
Posted By rpf
awk for selecting columns of different data files
Hello friends,

How can I use awk commands to obtain selective blocks from different data files. For example

file1
a b c
d e f
g h i

file2
1 2 3
4 5 6
7 8 9

output
a b 2 3
d e 5 6...
1,366
Posted By rpf
thanks bipinajith It works perfect... ...
thanks bipinajith
It works perfect...

thank you for your time
1,366
Posted By rpf
Thank you very much... It works perfect. ...
Thank you very much... It works perfect.

One last question. If you don"t have time forget it

instead of simple sum of 3 numbers i.e. a+b+c, is it possible to get Sqrt(axa+bxb+cxc) with this...
1,366
Posted By rpf
thank you very much bipinajith , what if I...
thank you very much bipinajith ,

what if I have multiple as follows, is it possible to do each of them seperately

5 2 3
-12.108 -11.789 -5.196 -4.370 -3.344 -2.229 -1.465 ...
1,366
Posted By rpf
Conversion of line via awk or etc
Hello friends, could you help me about problem with my data lines. I suppose a simple awk code may help me.

I have following data lines: (first line including 3 numbers and then a matrices of...
1,370
Posted By rpf
thank you guys both of them works.
thank you guys both of them works.
1,370
Posted By rpf
thank you ygemici for quick response. summation...
thank you ygemici for quick response. summation works well. however the code for average counts the empty lines as a data line and the average becomes wrong.
1,370
Posted By rpf
Summing data on N. row of each line
Hi friends, lets assume that I have lines of data as follows

rico 12 bct 58
pot 65 vft 41
dek 45 kbt 13
her 35 ubr 14
. . . .
. . . ...
2,155
Posted By rpf
thank you for reply but this code puts .dat to...
thank you for reply but this code puts .dat to the end of the names. can you do it excluding the .dat extension.
2,155
Posted By rpf
Rename the files by using code
Hi friends I have a question,

Assume that I have 3 files' named as file356.dat, file358.dat, file1521.dat

how can I rename them as file-356, file-358, file-1521


Thanks
15,621
Posted By rpf
thank you CarloM, Scrutinizer and itkamaraj....
thank you CarloM, Scrutinizer and itkamaraj. problem is solved with your help.
15,621
Posted By rpf
thank you for rapid response. I need some more...
thank you for rapid response. I need some more information

I have more than one file lets say textA, textB and textC (all of these include some lines of energy)

when I type

grep 'energy'...
15,621
Posted By rpf
I think you couldn't understand my question. my...
I think you couldn't understand my question. my file includes billions of lines. tail is not enough by itself.

first I have to pick some certain lines and than I want to see just the last one.
...
15,621
Posted By rpf
grep command and last line
Hello Dear Friends I have a question about grep command

when I type the command grep 'energy' mydata.txt it gives me

energy= 5001
energy= 8500
energy= 5505
energy= 5506

however I only...
3,092
Posted By rpf
command for converting 4 column data to 1 column
dear friends I want to convert four column data to one column data. For example:

from
1, 2, 3, 4
5, 6, 7, 8to
1
2
3
4
5
6
7
8what is the general command for that type of convertion.
...
1,459
Posted By rpf
Thank you guys
Thank you guys
1,459
Posted By rpf
oh sorry. it is 2D.
oh sorry. it is 2D.
1,459
Posted By rpf
loop for determination of number of points in a enclosed area
Hi Friends,

I am trying to find coordinates within three points by using a for loop. For example:

I want to find points within the triangular area enclosed by (1,2,3), (4,5,6) and (7,8,9)...
1,511
Posted By rpf
Extracting a certain number with grep command
Hello Friends,

when I type grep '275' myfile.txt

it gives me all the lines including 275 but it also gives others such as 0.8827588 or 1127507.

I only want the lines including 275. How can I...
1,959
Posted By rpf
sed command for picking a part of line
Hello Friends

I want to use sed command to pick a part of line. FOr example I only need the

/home_put1/bidds/myfo

part of following line
...
3,522
Posted By rpf
Hello ahamed. It is about to be done. We are very...
Hello ahamed. It is about to be done. We are very close. When I type

mycmd fish://jackboy@reacs1.ul.gov.tr/home_put1/jackboy

it gives

-bash: cd: 1.ul.gov.tr/home_put1/jackboy: No such file...
3,522
Posted By rpf
both the final variants didn't work. sorry. thank...
both the final variants didn't work. sorry. thank you very much for your effort.
1,328
Posted By rpf
Define Alias for Changing Directory to Another One
Hello Friends is it possible to define an alias (say named as COMMAND) to pick a part of line and change my directory to picked. For example

when I type
COMMAND...
3,522
Posted By rpf
I have some ideas but have no script knowledge :)...
I have some ideas but have no script knowledge :)

do you know how to pick a part of a line ?

I think if we pick the part of line we can define it as a variable (say WAY) and use it in a script...
Showing results 1 to 25 of 52

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