Search Results

Search: Posts Made By: vjramana
1,329
Posted By Scrutinizer
Try: for (( j=$k; j<=$m; j++ )); do
Try:
for (( j=$k; j<=$m; j++ )); do
3,021
Posted By rwuerth
Simply negate the tests so you will print the...
Simply negate the tests so you will print the data line if it is not a part
of the "set" array, and print all lines that don't start with "|" as below,
assuming you want to see all the headers and...
3,021
Posted By DGPickett
You can use sort and comm to find lines in one...
You can use sort and comm to find lines in one file's set or another or both, dividing your set.
3,021
Posted By durden_tyler
Using Perl - $ $ $ cat f8 DONOR...
Using Perl -


$
$
$ cat f8
DONOR ACCEPTORH ACCEPTOR
atom# res@atom atom# res@atom atom# res@atom %occupied distance angle
| 4726 59@O12 | 1487 19@H12 1486 19@O12 | 85.66 2.819 ( 0.18) 21.85...
3,021
Posted By rwuerth
Seems to me that you could use modulus to...
Seems to me that you could use modulus to simplify the tests.

Your number x (assumed to be less than or equal to 64?)

if x % 8 = 0 it's in the right hand column
if x % 8 = 1 it's in the...
Forum: Programming 08-09-2011
1,535
Posted By yazu
I'v never programmed in Fortran. So consider this...
I'v never programmed in Fortran. So consider this as pseudocode:


perl -e'
$n = 100;
$k = 2000;
$i = 0;
$j = 0;
$step = 1;
while ($i < $n) {
$j = 1;
while ($j <= $k - $step) {
...
1,901
Posted By michaelrozar17
thru sed.. sed '1000~1000!d' inputfile >...
thru sed..
sed '1000~1000!d' inputfile > outfile # every 1000th line starting from line 1000
sed '1~1000!d' inputfile > outfile # every 1000th line starting from line 1
1,901
Posted By bartus11
awk '!(NR%1000)' file
awk '!(NR%1000)' file
1,901
Posted By Scrutinizer
Try: awk '!(NR%1000)' infile
Try:
awk '!(NR%1000)' infile
Showing results 1 to 9 of 9

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