Search Results

Search: Posts Made By: phamnu
2,643
Posted By RavinderSingh13
Hello phamnu, Could you please try this and...
Hello phamnu,

Could you please try this and let me know if this helps.

awk '/GWA quasiparticle energy with Z factor \(eV\)/{A=1;while(A<=98){print;getline;A++}}' Input_file
Above will print...
2,643
Posted By vidyadhar85
If you have latest grep you have below options in...
If you have latest grep you have below options in grep
Context Line Control


or you can use awk


awk 'c-->0;/pattern/{c=98}' Infile
2,283
Posted By Yoda
While grouping commands in single line, each...
While grouping commands in single line, each commands has to be separated by semi-colon to clearly define boundary:
{ grep -v 'Ni' Md_Coordinates.xyz > test.txt; grep 'H' test.txt > test1.txt; awk...
2,125
Posted By elixir_sinari
Assuming that you need those particular lines to...
Assuming that you need those particular lines to be printed:
awk '!((NR-2)%3)' file
2,244
Posted By pamu
Using Elixir's code you don't need to create file...
Using Elixir's code you don't need to create file before grep.

grep 'F(tot: 1' ft.09 > F1.txtIf you want to append data into the file then just use >> instead of >.:)
2,244
Posted By elixir_sinari
grep 'your-pattern' input_file > new_file
grep 'your-pattern' input_file > new_file
34
79,747
Posted By ctsgnb
@Phamnu : What you have to understand is : ...
@Phamnu :
What you have to understand is :
when in vi or vim you have 2 main mode :
- insertion mode (when you type your code)
- command mode (when you want to tell vi/vim to do some specific...
Showing results 1 to 7 of 7

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