[SOLVED] Request for help with Bash script manipulation
Hi,
I have the following SGE submission (HPC calculation) script, which is just a Bash script:
What I'd like to do is take the following line within that script:
... looking, specifically, at the 'c0001' element.
I'd then like to, for example, say that I want 101 new scripts like this with only the 'c0001' element in that line changing accordingly. So, I would have 101 scripts where that element changes from c0001 to c0002 ... c0033 ... all the way to c0101.
The script is currently called 'script_0001', and I'd like the new scripts' filenames to change to script_0002 etc. all the way through to script_0101 according to how the c0001 element in the line in question is changed.
Ideally I'd like to produce something that can do what I need in Python or Bash as these are languages I am familiar with.
I started writing something in Bash which fell down and this is what I have in Python so far, which is a long way off and which I have rather hit the wall with:
Any help (or statements informing me that this not at all simple) would be greatly appreciated.
Last edited by crunchgargoyle; 10-19-2011 at 06:36 AM..
Reason: Solved
I am attempting to submit alot of jobs to this CONDOR program, in which it utilizes alot of computers and puts a single job onto each. Anyways, im trying to use the same program (autodock) to analyze different input files (dpf files), where each input file has a different name but same file... (0 Replies)
Dear all,
I'm a new guy doing some quntum calculation with gaussian on my rocks clusters. Recently, my cluster upgraded to rocks 5.3, but something strange happened. Everything goes correct except a serious problem. when I summit my gaussian job with script to sge queue, the job does run,... (0 Replies)
Hey all
Im looking to reduce the number of cpus available on a certain node in our cluster available for jobs using SGE.
i.e. we have one node that has 24 cpus available for jobs on SGE, i would like to reduce that to 16. Thanks (1 Reply)
Hello Unix.com
I want to know how can I extract from a large email list only the users.
1@a.com
2@b.com
3@c.com
I want to extract only 1, 2, 3.
Thanks in advance.
Galford D. Weller (2 Replies)
Hi,
I was trying to run a program that calls 8 processors (with max. RAM of 2 GB per processor). I want to run this program on my cluster that runs SGE. The cluster has 2 nodes, and each node has 62 cores, and 248GB/node. Currently, I use the scripts below, but the program (softx below) crashes... (0 Replies)
Hi,
I'm trying to edit my working bash script to an SGE script in order to submit it as a job to the cluster.
Currently I have:
#!/bin/bash
# Perform fastqc on files in a specified directory.
for ((j=1; j <=17; j++))
do
directory=/data4/una/batch"$j"/
... (0 Replies)
Hello,
I'm working on a SGE cluster and trying to echo the variables passed to the qsub command.
My script is as follows
#!/bin/bash
#$ -V
#$ -cwd
#$ -pe make 10
if ; then
echo "Variable is not set"
else
echo "Variable says: $StatedUserName"
fi
and I run the... (1 Reply)