Search Results

Search: Posts Made By: ananyob
1,218
Posted By ananyob
Subsituting contents of entire file to middle of another file using awk
Hi

I have a data file 'File2' consisting of 105670 lines. I want to copy and paste 17928 lines from 'File1' to 'File2' but I want to place it in between lines 21 and 17950 of 'File2'. How do I do...
1,214
Posted By ananyob
Subsituting contents of entire file to middle of another file using awk
Hi

I have a data file 'File2' consisting of 105670 lines. I want to copy and paste 17928 lines from 'File1' to 'File2' but I want to place it in between lines 21 and 17950 of 'File2'. How do I do...
1,538
Posted By ananyob
Changing one number in all files using awk
Hi

I want to change the number 70 mentioned in my file to 76 by using awk. I know how to change all same digits but not one particular number.

I have 29 files almost similar to this. One of my...
11,852
Posted By ananyob
Thanks dr.house, I just incorporated "77 78$" in...
Thanks dr.house, I just incorporated "77 78$" in my pattern matching file and it worked exactly well..Thanks IKON and dr.house for your support.......:b:
11,852
Posted By ananyob
Thanks IKON....... actually i just figured out...
Thanks IKON....... actually i just figured out what grep is doing.....its not the fault of grep
I have a file where 19224 lines are there with lines like (giving a snapshot)
1 1 1 2
2 ...
11,852
Posted By ananyob
alternate for "grep -vf" command
I have been using grep for removing lines of a particular pattern from a long file in the following way

grep -vf Exclude_Lines File1 > File2

But grep seems to have some problems because...
4,729
Posted By ananyob
thanks Franklin......the code worked....i wish i...
thanks Franklin......the code worked....i wish i knew it was so easy to combine both with the && in between.....thanks a lot :)
4,729
Posted By ananyob
trying to print selected fields of selected lines by AWK
I am trying to print 1st, 2nd, 13th and 14th fields of a file of line numbers from 29 to 10029. I dont know how to put this in one code. Currently I am removing the selected lines by
awk...
1,889
Posted By ananyob
thanks rdcwayx, the code worked...
thanks rdcwayx,
the code worked perfectly...........thanks a lot.
1,889
Posted By ananyob
Code for giving the frequency of numbers appearing in rows
I have a data file that has 6 columns and I have sorted the 3rd column so that all rows are sorted according to the 3rd column (from lowest to highest number). An example is shown below:

7563 ...
2,235
Posted By ananyob
Thanks Scottn, the second code worked fine for...
Thanks Scottn, the second code worked fine for me....
Your 1st code is correct but my file has more spaces in between the numbers and then I have to put the exact number of spaces.
So putting the...
2,235
Posted By ananyob
How to print file without few exactly matching lines?
Hi I have a very long file with 4 columns of numbers for example
1875 1876 12725 12723
13785 13786...
2,005
Posted By ananyob
First of all, Thanks Jim for doing an effort. ...
First of all, Thanks Jim for doing an effort.

Well my requirement is like this.....I want to extract lines with these file numbers of 506, 515, 527, 536 and line numbers like 1170 (506+664*1) ,...
2,005
Posted By ananyob
How to get different lines using a for loop
Hi

I am trying to write a small AWK program to extract 324 lines which have a pattern in the line numbers.
For examples, I want to extract lines 2, 5, 7, 11 and lines like (2+662), (5+662),...
7,303
Posted By ananyob
thanks a lottt for the code......now i will try...
thanks a lottt for the code......now i will try to understand what each line of that code means...............
i will edit the code little bit and use it for my long list of coordinates
7,303
Posted By ananyob
Thanks ryandegreat25.....i had a look at the...
Thanks ryandegreat25.....i had a look at the manual and I will search it again

I think i can make it easier by using all coordinates in one file......by appending one set to the end of the...
7,303
Posted By ananyob
AWK code for finding distances between atoms in two different files
Hi:)

I have two separate data files (.xyz) type and I want to see distances between the coordinates of atoms of the two files. For example:-
My first files contains
1 1 1 11.50910000 ...
2,729
Posted By ananyob
thanks ripat sort -k4n file worked for me....i...
thanks ripat
sort -k4n file worked for me....i just removed the "r"
2,729
Posted By ananyob
hi thanks a lot for that....actually what i want...
hi thanks a lot for that....actually what i want to do is......i have a file with four columns like
1 2 4 5.6789
3 1 5 2.4578
1 3 2 9.4678
2 4 1 13.5673

So I want to order all the lines but on...
2,729
Posted By ananyob
trying to make an AWK code for ordering numbers in a column from least to highest
Hi all,

I have a large column of numbers like
5.6789
2.4578
9.4678
13.5673
1.6589
.....
I am trying to make an awk code so that awk can easily go through the column and arrange the numbers...
Showing results 1 to 20 of 20

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