Search Results

Search: Posts Made By: crunchgargoyle
2,090
Posted By crunchgargoyle
Sorry for not being more specific. The...
Sorry for not being more specific.

The output that clx posted and the corresponding script were exactly what I needed — thank you very much.

The column spacings are indeed important but easy...
2,090
Posted By crunchgargoyle
Adding (as in arithmetic) to numbers in columns in file, and writing new file with new numbers
Hi again. Sorry for all the questions — I've tried to do all this myself but I'm just not good enough yet, and the help I've received so far from bartus11 has been absolutely invaluable. Hopefully...
1,515
Posted By crunchgargoyle
awk 'NR==FNR{a[$0]=1;next}a[FNR]==1{gsub...
awk 'NR==FNR{a[$0]=1;next}a[FNR]==1{gsub ("H","Na+")}1' test testsds.pdb



^ works flawlessly, thank you.
1,515
Posted By crunchgargoyle
Trying to take file numbers from a file, pass them to sed to change strings in corresponding lines
I have a bunch of file numbers in the file 'test':

I'm trying the above command to change all the instances of "H" to "Na+" in the file testsds.pdb at the line numbers indicated in the file...
2,296
Posted By crunchgargoyle
Thank you, that actually worked flawlessly. I...
Thank you, that actually worked flawlessly. I think I can understand what's going on, as well.

Much appreciated.
2,296
Posted By crunchgargoyle
Reducing the decimal points of numbers (3d coordinates) in a file; how to input data to e.g. Python
I have a file full of coordinates of the form:

37.68899917602539 58.07500076293945 57.79100036621094

The numbers don't always have the same number of decimal points. I need to reduce the...
1,929
Posted By crunchgargoyle
The output is blank. I'm testing it by...
The output is blank.

I'm testing it by running:

grep 'MAM' test.pdb | awk '{print substr($0,25,2)}' | sort | uniq | tr '\n' ' ' | read var1 var2 var3; echo $var3
I'm using grep beforehand as...
7,651
Posted By crunchgargoyle
It's all just a bit too finicky. I'm managing;...
It's all just a bit too finicky. I'm managing; it's only temporary anyway as I'm not in the US for more than another month or so.
1,929
Posted By crunchgargoyle
This doesn't appear to work.
This doesn't appear to work.
7,651
Posted By crunchgargoyle
Haha thanks yeah that's pretty much what I've...
Haha thanks yeah that's pretty much what I've been doing.
1,929
Posted By crunchgargoyle
I need to assign each individual number to an...
I need to assign each individual number to an individual variable, though.
1,929
Posted By crunchgargoyle
Thank you, that extracts the numbers I need from...
Thank you, that extracts the numbers I need from the file with a 'grep' command at the beginning.

How would I go about assigning them to variables sequentially?
1,929
Posted By crunchgargoyle
Help extracting single instance of numbers which repeat
Hi, the title isn't very descriptive but it'll be easier to explain what I need if I write out the coordinates from which I need to extract certain information:

ATOM 2521 C MAM X 61 ...
7,651
Posted By crunchgargoyle
Would there be a way to use that in xbindkeys so...
Would there be a way to use that in xbindkeys so that I could remap to a particular key? Aliasing won't work and I tried using a function.
7,651
Posted By crunchgargoyle
Problem getting vertical bar with British keyboard layout on US (physical) keyboard
Hi, I've got a bit of a ridiculous problem and wasn't sure where to post it.

I need to use the vertical bar for piping in Bash but, as per the title, am using a UK layout on a US (physical)...
1,476
Posted By crunchgargoyle
Many thanks!
Many thanks!
1,476
Posted By crunchgargoyle
[SOLVED] Request for help with Bash script manipulation
Hi,

I have the following SGE submission (HPC calculation) script, which is just a Bash script:


#!/bin/bash -l

#$ -S /bin/bash
#$ -l h_rt=1:00:0
#$ -l mem=4G
#$ -N XXX
#$ -pe qlc 24
#$...
2,892
Posted By crunchgargoyle
Yes you guessed correctly - I feel like I've...
Yes you guessed correctly - I feel like I've learnt a lot about how to explain specific problems specifically through all these mistakes! :o

Thanks so much guys - you've really helped out a PhD...
2,892
Posted By crunchgargoyle
Both of the methods you guys have suggested work...
Both of the methods you guys have suggested work perfectly and I'm really thankful to you both.

But er ... I've realised that what I actually need is to determine the largest negative among ALL...
2,892
Posted By crunchgargoyle
I apologise for the confusion: I treated the four...
I apologise for the confusion: I treated the four rows independently.

What I want to do is take the largest negative numbers of columns 6-8, make them positive, and add that positive number to...
2,892
Posted By crunchgargoyle
Thank you very much indeed for the quick...
Thank you very much indeed for the quick responses. Corona the code you have suggested is clearly almost exactly what I need, but some of the output coordinates seem to be slightly off. My desired...
2,892
Posted By crunchgargoyle
Taking largest (negative) number from column of coordinates and adding positive form to every other
Hello all,

I'm new to the forums and hope to be able to contribute something useful in the future; however I must admit that what has prompted me to join is the fact that currently I need help...
Showing results 1 to 22 of 22

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