Search Results

Search: Posts Made By: 510426762
903
Posted By rovf
{ head -n -1 complex.gro; cat lig.gro; tail -n 1...
{ head -n -1 complex.gro; cat lig.gro; tail -n 1 complex.gro; } >combined.gro
903
Posted By Scrutinizer
Try: awk ' NR==FNR { if(FNR==2) ...
Try:

awk '
NR==FNR {
if(FNR==2)
ligval=$1
if(FNR>2 && NF>3)
lig=lig $0 RS
next
}
{
if(FNR==2)
$0=$1+ligval
if(NF==3)
$0=lig $0
...
903
Posted By Yoda
Here is an approach using awk:- awk ' ...
Here is an approach using awk:-
awk '
NR == FNR {
if ( FNR == 2 )
lig_atoms = $1
if ( FNR > 2 )
atom[++i]...
903
Posted By Corona688
To keep the forums high quality for all users,...
To keep the forums high quality for all users, please take the time to format your posts correctly.

First of all, use Code Tags when you post any code or data samples so others can easily read...
Showing results 1 to 4 of 4

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