Search Results

Search: Posts Made By: phamnu
2,536
Posted By phamnu
Dear Singh, I have tried both of the...
Dear Singh,

I have tried both of the commands but still get no results.
My file is something like this:
....
...
.
.
GWA quasiparticle energy with Z factor (eV)
(I need 98 lines after the...
2,536
Posted By phamnu
The grep command did not work in this case. ...
The grep command did not work in this case.

I have tried the awk command as you suggested:

awk 'c-->0;/GWA quasiparticle energy with Z factor(eV)/{c=98}' ISYS.out >test.txt

but there is...
2,536
Posted By phamnu
How to copy only some lines from very big file?
Dear all,

I have stuck with this problem for some days.
I have a very big file, this file can not open by vi command.
There are 200 loops in this file, in each loop will have one line like this:...
2,263
Posted By phamnu
thank you!
thank you!
2,263
Posted By phamnu
Here is the error I got. { grep -v 'Ni'...
Here is the error I got.
{ grep -v 'Ni' Md_Coordinates.xyz > test.txt grep 'H' test.txt>test1.txt awk 'NR%2==0' test1.txt>test2.txt; }
Ambiguous output redirect.

and I could not see the files...
2,263
Posted By phamnu
How to save and run a list of commands?
Dear every one,
I am working with the data of my lab program and I have to do many times by the same list of some commands (grep, then save to file, then use awk to delete odd lines, save to file,...
2,076
Posted By phamnu
You are great!!!
You are great!!!
2,076
Posted By phamnu
How to delete specific lines (2n+3 line, n=0,1,2...296) in a file?
Dear everyone,
I have a file with 900 lines (there is only numbers in one line, no string),
I only need the lines 2+3n (n=0,1...296), i.e line 2, 5, 8, 11...888.
I tried google but only the...
2,178
Posted By phamnu
Thanks so much but I still can not get it. I...
Thanks so much but I still can not get it.
I write the command like that:
grep 'F(tot: 1' ft.09 F1.txt
'ft.09' is the old file, F1.txt is the new one.
Is the command right?

Sorry if the...
2,178
Posted By phamnu
How to export some lines from a file to a new file?
Dear everyone,
I have a big file with many information in it, but I just want some lines.
I don't know exactly what the number of the line I want, I only know some part of these line. It all...
34
77,778
Posted By phamnu
I am a beginner with unix, so may be my question...
I am a beginner with unix, so may be my question will be very stupid.

I have problem with saving a FORTRAN's code after changing it.
I used the "vim" command to read the code, then use the...
Showing results 1 to 11 of 11

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