Search Results

Search: Posts Made By: crunchgargoyle
2,090
Posted By clx
If you just need what you said, This is it. ...
If you just need what you said, This is it.

$ awk '{$2+=5294;$6-=126;print}' OFS="\t" file
ATOM 5295 OW SOL X 131 77.820 57.470 97.740 1.00 0.00
ATOM 5296 ...
1,515
Posted By SriniShoo
Give us an example of the current data and...
Give us an example of the current data and expected changes...we shall try
1,515
Posted By bartus11
Try:awk 'NR==FNR{a[$0]=1;next}a[FNR]==1{gsub...
Try:awk 'NR==FNR{a[$0]=1;next}a[FNR]==1{gsub ("H","Na+")}1' test testsds.pdb
2,296
Posted By bartus11
Try:awk '{for (i=1;i<=NF;i++) $i=sprintf...
Try:awk '{for (i=1;i<=NF;i++) $i=sprintf ("%.2f",$i)}1' file
7,651
Posted By DGPickett
You can make an x keyboard to anything, but I...
You can make an x keyboard to anything, but I have been spared that education. I have some bits that make my pc numeric keypad work, but every time I sneeze, it flips back! Maybe a function key, or...
1,931
Posted By Jotne
Only print unique field 6 awk '!x[$6]++ {print...
Only print unique field 6
awk '!x[$6]++ {print $6}' file

print complete line
awk '!x[$6]++' file
1,931
Posted By bartus11
... | sort | uniq | while read var; do do...
... | sort | uniq | while read var; do
do something with $var here
done
1,931
Posted By bartus11
Try: awk '{print substr($0,25,2)}' file | sort |...
Try: awk '{print substr($0,25,2)}' file | sort | uniq
7,651
Posted By DGPickett
Well, it's octal 0174, so:echo x|tr 'x' '\174' ...
Well, it's octal 0174, so:echo x|tr 'x' '\174'

echo '\0174'
|
1,476
Posted By rdcwayx
By shell: cat template #!/bin/bash -l ...
By shell:

cat template

#!/bin/bash -l

#$ -S /bin/bash
#$ -l h_rt=1:00:0
#$ -l mem=4G
#$ -N XXX
#$ -pe qlc 24
#$ -P XXX
#$ -wd /home/uccaxxx/Scratch/222PdT/3vac/c0001/

mpirun -m...
2,894
Posted By vgersh99
just for reference: BEGIN{OFS="\t";...
just for reference:

BEGIN{OFS="\t"; ARGV[ARGC++] = ARGV[1] }
function abs(i) {return (i<0)?-i:i}

FNR==NR{
for(i=1;i<=NF;i++)
if ($i<0) {
m=($i<m)?$i:m
nC[i]
}
next...
2,894
Posted By vgersh99
Do you want to determine the largest negative...
Do you want to determine the largest negative among ALL the columns and add its absolute value to ALL the negative values for ALL the columns?
Or you want to determine the largest negative PER...
2,894
Posted By Corona688
ALL the columns? Even the ones that say HETATM,...
ALL the columns? Even the ones that say HETATM, C, and UNK?

You'd better just tell us which columns.

Or better yet: An example of your input and output data!!

---------- Post updated at...
2,894
Posted By vgersh99
ok, try this: BEGIN{OFS="\t"; ARGV[ARGC++] =...
ok, try this:

BEGIN{OFS="\t"; ARGV[ARGC++] = ARGV[1] }
function abs(i) {return (i<0)?-i:i}

FNR==NR{
for(i=1;i<=NF;i++)
if ($i<0)
m[i]=($i<m[i])?$i:m[i]
next
}
{
...
2,894
Posted By Corona688
You're doing better than usual, it sometimes...
You're doing better than usual, it sometimes takes 4 pleas for a poster to show their data, let alone admit what they want :)

Working on it...

---------- Post updated at 11:29 AM ----------...
Showing results 1 to 15 of 15

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