Search:

Type: Posts; User: sd@ksu; Keyword(s):

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. [ubuntu] Re: Reading a data from files and saving elsewhere

    How do I mark this as solved?
  2. [ubuntu] Re: Reading a data from files and saving elsewhere

    Thanks to you both, the code works!!! I have changed it to the following ( for displaying in scientific notation and also preserving the number of significant digits in my calculation:




    It...
  3. [ubuntu] Re: Reading a data from files and saving elsewhere

    Sure, I shall try that. I think that would work . I see what you mean. Thanks steeldriver. :-)
    .
    PS: When I said manually deleting one line from top, I did not put it correctly. I meant deleting...
  4. [ubuntu] Re: Reading a data from files and saving elsewhere

    I have uploaded two files here:
    http://ubuntuone.com/5DZi50gEgX6i2xD3K813vQ
    http://ubuntuone.com/1Ipb7oP2LK0l8AmIwIo2Nq

    One thing I said wrongly in my first post, that, the first FOUR lines...
  5. [ubuntu] Re: Reading a data from files and saving elsewhere

    Dear Vaphell: Thanks for your reply. The code does something (I am using it like a black box!) but does not give correct answers
  6. [ubuntu] Reading a data from files and saving elsewhere

    Guys, I have a list of files, say, 001.dat to 099.dat. First 3 lines of each file should not be considered. From next, the data is in two columns, X and Y column. What I want is following:
    From each...
  7. [SOLVED] Re: using grep awk or any other unix tool to rearrange a file

    Works like a charm..thanks a lot.
  8. [SOLVED] using grep awk or any other unix tool to rearrange a file

    I have a file where I have a few lines like below:


    From the above file, for each section marked by "#S", I want to save the number/texts marked as bold+underline+RED in color into one line as...
  9. Replies
    5
    Views
    337

    [SOLVED] Re: Panel default settings lost

    it is solved by using the above script.
  10. Replies
    5
    Views
    337

    [SOLVED] Re: Panel default settings lost

    @ cmcanulty: Works like a charm...
    It is a script which is self explanatory. Thanks a ton.:guitar:
  11. Replies
    5
    Views
    337

    [SOLVED] Re: Panel default settings lost

    @ cortman: Yes I did.. it just adds a small white vertical bar to the panel :((((
  12. [SOLVED] Re: Find line number from a file containing a particular text

    codemaniac..yup..learning awk...bte..liked ur progress quote at bottom..:guitar:
  13. Replies
    5
    Views
    337

    [SOLVED] Panel default settings lost

    I have done something idiotic. In the attached image, I have lost the top right part of my panel where all those icons appear. I wanted to remove the Mail client icon but it removed everything. Can...
  14. [SOLVED] Re: Find line number from a file containing a particular text

    works like a charm...thanks to both of you!:popcorn:
  15. [SOLVED] Re: Find line number from a file containing a particular text

    I can use grep, it seems as below:


    grep -n "#S 1 " file


    but I want only the line number...also is there a better way to do it?
  16. [SOLVED] Find line number from a file containing a particular text

    I have a file "file" in this structure (say):


    #S 1 bla bla
    #C bla bla
    #Q bla bla
    #L x y z
    0 1 2
    1 2 5
    2 5 7
  17. Replies
    6
    Views
    724

    [SOLVED] Re: Use awk to rearrange datafile content

    Thank you all for the help.
    Yes, sort is definitely the right tool. Pardon my ignorance, I am not very skilled at Linux yet.
    I have got the answers I was looking for, so I am marking it as solved....
  18. Replies
    6
    Views
    724

    [SOLVED] Re: Use awk to rearrange datafile content

    Wonderful..Thanks a lot...I would still keep the thread open as I would also like to have the answer to my above 2 questions:
    1) how to pass a variable in awk?
    2) how to append to a file using awk?
  19. Replies
    6
    Views
    724

    [SOLVED] Use awk to rearrange datafile content

    I have a datafile with contents arranged in three columns separated by space. Here is the content say (filename:in):


    -2 15 101
    -1 15 99
    0 15 132
    1 15 101
    2 15 131
    -2 10 111
    -1 10 79
  20. Replies
    3
    Views
    1,349

    [SOLVED] Re: delete columns from text file

    Awesome...thanks a lot:guitar:
  21. Replies
    3
    Views
    1,349

    [SOLVED] delete columns from text file

    I have a text file of data in 9 columns with space as delimiter. I want to delete column 3,4 without opening it and save to another file. Also I want to do from row n to row m (say), i.e., part of...
  22. Replies
    5
    Views
    568

    [ubuntu] Re: Using dpkg get/set selctions in an upgrade

    Thanks...am not marking it SOLVED yet...because I am still to try thy suggestions...:-)
  23. Replies
    6
    Views
    311

    [SOLVED] Re: get first number from a string

    Let me tell you the reason why i do not want to use awk..I have tried sed also..but did not work..
    I have a data file, where each set of data starts with a string like this:

    Then the data...
  24. Replies
    6
    Views
    311

    [SOLVED] get first number from a string

    I have a string like this suppose"

    or

    .................
    Now I want to take out only the number out from that string. As you can see, head would not always work as the number in first place can...
  25. Replies
    5
    Views
    568

    [ubuntu] Using dpkg get/set selctions in an upgrade

    I have recently installed 12.04 on my system. Earlier I had 11.04. I have both of them installed (using vmware). Now the problem is, I used a few programs in 11.04 and I also want them to be in...
Results 1 to 25 of 75
Page 1 of 3 1 2 3