How do I mark this as solved?
Type: Posts; User: sd@ksu; Keyword(s):
How do I mark this as solved?
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:
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...
I have uploaded two files here:
One thing I said wrongly in my first post, that, the first FOUR lines...
Dear Vaphell: Thanks for your reply. The code does something (I am using it like a black box!) but does not give correct answers
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:
Works like a charm..thanks a lot.
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...
it is solved by using the above script.
@ cmcanulty: Works like a charm...
It is a script which is self explanatory. Thanks a ton.:guitar:
@ cortman: Yes I did.. it just adds a small white vertical bar to the panel :((((
codemaniac..yup..learning awk...bte..liked ur progress quote at bottom..:guitar:
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...
works like a charm...thanks to both of you!:popcorn:
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?
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
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....
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?
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
Awesome...thanks a lot:guitar:
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...
Thanks...am not marking it SOLVED yet...because I am still to try thy suggestions...:-)
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...
I have a string like this suppose"
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...
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...